0

I have two values

var date = "2012-08-10";
var time = "10:10";

Then I do

var dte = date + " " + time;

and

var dte = new Date(dte).getTime() / 1000;

The below link says it needs date.js to give right reults Converting Date and Time To Unix Timestamp

Can the above code give right results without date.js

san
  • 237
  • 7
  • 19

0 Answers0