Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
15
rated 0 times [  22] [ 7]  / answers: 1 / hits: 20375  / 11 Years ago, sat, november 9, 2013, 12:00:00

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.


More From » jquery

 Answers
21
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();

[#74387] Friday, November 8, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
davonte

Total Points: 581
Total Questions: 101
Total Answers: 113

Location: Sudan
Member since Tue, Aug 3, 2021
3 Years ago
;