I have a date as a String like : 2015-12
for december 2015.
I would like to convert this date to get this date in milliseconds in javascript. (From the first day of the month)
How can i do it ?
I have a date as a String like : 2015-12
for december 2015.
I would like to convert this date to get this date in milliseconds in javascript. (From the first day of the month)
How can i do it ?
You could do :
YourDate + "-01"
And then try to convert to a date
d = new Date(YourDate)
And finaly :
d.getMilliseconds()