I want to convert a particular date (say 31st October 2017) to the timestamp.
What should be my input and how to convert it into timestamp?
I want to convert a particular date (say 31st October 2017) to the timestamp.
What should be my input and how to convert it into timestamp?
Just use getTime
with new Date(date_to_parse)
var example="31 October, 2017";
alert(new Date(example).getTime());