Solved

How do I convert dd-mmm-yyyy (14-Sep-2004) into javascript date format?

Posted on 2004-09-14
3
1,271 Views
Last Modified: 2012-05-05
How do I convert dd-mmm-yyyy (14-Sep-2004) into javascript date format?

I'd also like to be able to deal with the following kind of date string 1-Sep-2004 (where we unfortunately encounter d-mmm-yyyy rather than the desired dd-mmm-yyyy.
0
Comment
Question by:GessWurker
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
cwolves earned 500 total points
ID: 12057662
new Date('14-sep-2004'.replace('-', ' '));

in other words, use spaces instead of dashes
0
 

Author Comment

by:GessWurker
ID: 12057710
Perfect! Thanks!
0
 
LVL 9

Expert Comment

by:cwolves
ID: 12057725
yep :-)  and ty
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Fix Form size HTML 16 30
Can't get javascript video player button to work 10 23
HTML auto refresh to another site 4 28
Jquery if else not working ... WHY? 5 23
This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question