We've got a SQL table of data that is populated by clients for later processing by a background service. This works most of the time, but it appears that a certain subset of clients has been sending us an unexpected date format, which is resulting in JSON parsing errors. We're expecting dates of the format:
2018-01-20T13:42:43.1040000Z
but what we're getting from these clients is:
2018-01-20T3:42:43.1040000 p. m.Z
First prize would be to find a standard JSON parser or format string that knows how to convert these date strings properly. Second prize would be to write an update script for SQL that converts these strings into something usable. Otherwise, we're going to be writing scripts to parse these dates as strings and then massage them until they're valid, which is nasty.
Anyone know any standard parsers, or can suggest a date format string that will be able to interpret these weird date strings correctly?