Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
112
rated 0 times [  118] [ 6]  / answers: 1 / hits: 25516  / 10 Years ago, wed, january 7, 2015, 12:00:00

I am using momentjs and want to output the name of the day ie. Wednesday but the API only seems to offer a number.



Is there a way to do this without hard-coding it to a particular language?


More From » momentjs

 Answers
31

From the Format section of their documentation:




Day of Week dddd Sunday Monday ... Friday Saturday




moment().format('dddd');

[#68283] Monday, January 5, 2015, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jackelyn

Total Points: 303
Total Questions: 103
Total Answers: 102

Location: Turks and Caicos Islands
Member since Sun, Mar 7, 2021
3 Years ago
jackelyn questions
Thu, Apr 8, 21, 00:00, 3 Years ago
Sun, Feb 28, 21, 00:00, 3 Years ago
Mon, May 25, 20, 00:00, 4 Years ago
Thu, Apr 30, 20, 00:00, 4 Years ago
;