[fpc-pascal] JSON dates

Reinier Olislagers reinierolislagers at gmail.com
Thu Feb 21 10:59:09 CET 2013


Creating a client/server scanning application that uses JSON to exchange

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();
which looks like an ISO date to me.

Currently FPC JSON gives a huge number for current date/time, presumably
just the representation of TDateTime.

Is this ISO 8601 format currently the most widely used? It seems the
most sane to me.


More information about the fpc-pascal mailing list