I have probably very simple question. I downloaded the http://jqplot.com javascript library and it provides the following example:
loc.push([[1340877779000, 2, 'start'] , [1340877869000, 2, 'end' ]]);
I need to substitute 1340877779000 with my variables that specify the time. I have:
var date_start = "2012-08-12 11:15";
var date_end = "2012-08-12 12:00";
How can I format 'date_start' and 'date_end' variables in order to use them inside loc.push()?