I have setup custom DateTime formatting and parsing so that all our DateTimes are displayed in the with the timezone.
I have made use of the DateUtil methods to specify both the formatting and parsing and it is all work very nicely. Forms with DateTimes show our format and using the picker works as well.
All good. The issue I am having now is that when I use a DateTime in the FilterBuilder, it is showing our format as above but when I save the AdvancedCriteria the format of the DateTime is a different format and so when I load a saved Criteria, our date parsing fails because of the unknown format.
For example, on the Filter Builder I select a DateTime using the picker to May 1st Midnight my timezone (Eastern) and the FilterBuilder shows me the expected DateTime in my format:
2014-05-01 00:00:00 -0400
When I save this AdvancedCriteria to a String via json, the format of the above date turns into this:
2014-05-01T04:00:00.000
I am not sure what this format is?
Can I control the format of how the DateTime is persisted in the AdvancedCriteria?
Thanks!
I have made use of the DateUtil methods to specify both the formatting and parsing and it is all work very nicely. Forms with DateTimes show our format and using the picker works as well.
All good. The issue I am having now is that when I use a DateTime in the FilterBuilder, it is showing our format as above but when I save the AdvancedCriteria the format of the DateTime is a different format and so when I load a saved Criteria, our date parsing fails because of the unknown format.
For example, on the Filter Builder I select a DateTime using the picker to May 1st Midnight my timezone (Eastern) and the FilterBuilder shows me the expected DateTime in my format:
2014-05-01 00:00:00 -0400
When I save this AdvancedCriteria to a String via json, the format of the above date turns into this:
2014-05-01T04:00:00.000
I am not sure what this format is?
Can I control the format of how the DateTime is persisted in the AdvancedCriteria?
Thanks!
Comment