I now it has been aswer before, the problem is that I get the date from an input is not the current date.
I need to get the day of the week. Currently I get the date with this format :
11/09/2013
But I want it like:
Saturday/02/2013.
I'm using datepicker to show the calendar, so it could be some solution that would help me using the same plugin.
var date = new Date();
var weekdays = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
var weekday = weekdays[date.getDay()];
var month = date.getMonth() + 1;
var year = date.getYear();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With