1

i am getting date in the format (YY/DD/MM) for ex 2010/12/07 i want to change format to Monday 7 July, 2010 through javascript

1 Answer 1

2

Use the toLocaleDateString() method of the date object (it will be specific to the user's locale)

var d = new Date('2010/12/07');
alert(d.toLocaleDateString());
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.