var stardate = "02-March-2016";
How to convert the stardate string into UNIX timestamp. Is there is any inbuilt function in javascript for this?
var stardate = "02-March-2016";
How to convert the stardate string into UNIX timestamp. Is there is any inbuilt function in javascript for this?
To get the unix-timestamp do this:
new Date("02-March-2016").getTime() / 1000;