Unparseable date

2
I set a DateTime constant, systemStartDate = 01/01/1970 00:00:01, in the application constants pane under resources. When I start the XAS server it falls over with an unparseable date error "1970-01-01T00:00:01". Anyone know what the problem is? I'm only comparing it with DateTimes, but the error occurs on system start and before I actually try to read the constant anyway.
asked
1 answers
5

Hi Martin,

The format of the DateTime constant is incorrectly stored by the Modeler (or incorrectly parsed by the XAS, depending on how you perceive it). The expected format is "yyyy-MM-dd'T'HH:mm:ss.SSS" (so with milliseconds). This will only fail in Development and Test mode, as in Acceptation and Production mode the constant value is specified in a configuration file. This is a bug, could you file this as a bug in MXDN?

answered