Re: [fpc-pascal] JSON dates

2013-02-21 Thread Graeme Geldenhuys
On 2013-02-21 09:59, Reinier Olislagers wrote: > > Noticed that Firefox gives this: > new Date().toJSON(); > /* > 2013-02-21T09:47:42.467Z > */ > which looks like an ISO date to me. Yes, that is the ISO 8601 format, and the only sane format you should use. Even in my database application, my date

[fpc-pascal] JSON dates

2013-02-21 Thread Reinier Olislagers
Hi, Creating a client/server scanning application that uses JSON to exchange data. Noticed there's no support for dates in the JSON specs; apparently various approaches are used (Unix epoch/ISO 8601 date strings/something Microsoft did). Noticed that Firefox gives this: new Date().toJSON(); /* 2