Subject: Variables in Hocon, String concatenation and date substitution.
Current Use case: I am trying to get a simple string with a date like the following via the Hocon Config: "myElasticSearchIndex_25Jan2018"
What have I tried in the hocon:
todayDate {
day =${time.day}
month=${time.month}
}
C#
var todayDate = config.GetString("todayDate.day");
Error: An unhandled exception of type 'System.FormatException' occurred in Akka.dll: Additional information: Unresolved substitution: time.day
Question: How do I do a gatedate()? or getmonth() or getday() via substitution on the hocon?
The documentation is not clear on this: https://github.com/lightbend/config/blob/master/HOCON.md#units-format