strtotime in jQuery with generic dates

5.8k views Asked by At

I'm trying to convert a date like "16/8/2015" (d/m/Y) to a unix timestamp.
All i'm finding are codes for converting dates like "18-Jun-2015" with:

Date.parse("18-Jun-2015")

Which works, but that's not what I need.
Any leads on converting other types of date formats?

1

There are 1 answers

0
Siamak Ferdos On BEST ANSWER

Try:

var date = new Date('2015-08-16');