I want build a function (or using a library) that get the day of the week from a date String..
For example, I want transform this date : 1-12-2015 to "Monday"
Any help ? Thank you
I want build a function (or using a library) that get the day of the week from a date String..
For example, I want transform this date : 1-12-2015 to "Monday"
Any help ? Thank you
var days = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];
var day = days[ (new Date("1-12-2015")).getDay() ];
alert(day);