how do you format a date into the format 30-Apr-10 in javascript?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are a few libraries out there for this, you can use something like Date Format (under 4kb completely uncompressed), then your usage would be like this:
Though, if possible, I’d stick to 4-digit years 🙂