I apologize in advance. It seems there is tons of date time conversion information out there, but I cant figure this simple issue out.
My log files always produce time strings like: 2022-11-06T07:06:00.990574
How do I get more human readable dates and times?
I have been through the date/time formatting documentation and cannot locate a simple solution to formatting time in a rule.
The toString modifiers dont do anything and dont produce any errors either. Why doesnt the following statement produce a simple hour and minute result?
logInfo(“Update States”,“Running Update house at: {}”,now.toLocalDateTime.toString(“hh:mm”))
Instead of 6:00, I get 2022-11-06T07:06:00.990574.