Solved

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

Posted on 2004-09-14
3
1,259 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
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…
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…

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now