I’m trying to set up a line chart using NVD3 (similar to example http://nvd3.org/examples/cumulativeLine.html) which requires JSON date values in the Unix Time Stamp format. Has anyone solved this date format issue before? Source data coming from DHIS2 is returned as 2012-06-27 00:00:00 while the expected Unix Time Stamp format value is 1340755200000.
I’m trying to set up a line chart using NVD3 (similar to example http://nvd3.org/examples/cumulativeLine.html) which requires JSON date values in the Unix Time Stamp format. Has anyone solved this date format issue before? Source data coming from DHIS2 is returned as 2012-06-27 00:00:00 while the expected Unix Time Stamp format value is 1340755200000.
I’m trying to set up a line chart using NVD3 (similar to example http://nvd3.org/examples/cumulativeLine.html) which requires JSON date values in the Unix Time Stamp format. Has anyone solved this date format issue before? Source data coming from DHIS2 is returned as 2012-06-27 00:00:00 while the expected Unix Time Stamp format value is 1340755200000.