About 1,500,000 results
Open links in new tab
  1. How do I format a date in JavaScript? - Stack Overflow

    How do I format a Javascript Date object as a string? (Preferable format: 10-Aug-2010)

  2. Format JavaScript date as yyyy-mm-dd - Stack Overflow

    This Stack Overflow thread provides solutions for formatting JavaScript dates as yyyy-mm-dd.

  3. Get String in YYYYMMDD format from JS date object?

    Jun 18, 2010 · I'm trying to use JS to turn a date object into a string in YYYYMMDD format. Is there an easier way than concatenating Date.getYear(), Date.getMonth(), and Date.getDay()?

  4. Parsing a string to a date in JavaScript - Stack Overflow

    How can I convert a string to a Date object in JavaScript? var st = "date in some format" var dt = new Date (); var dt_st = // st in Date format, same as dt.

  5. How to display a Date object in a specific format using JavaScript?

    Mar 2, 2012 · I have a Date object and I'd like to display it in the below format: var myDate = getDate(); // this format: "13 Jan 2012 11:00am"; How would that be possible? Thanks,

  6. How to change date format in JavaScript - Stack Overflow

    Dec 31, 2015 · @pceccon Answer to an old question for future readers, but the format should have been ("yyyy-MM-dd"). The library is case sensitive since you need to distinguish between minutes / month …

  7. Format a date string in javascript - Stack Overflow

    Jun 12, 2017 · Hello every i have date field of type string with iso format like this: const date = "2017-06-10T16:08:00: i want somehow to edit the string in the following format like this: 10-06-2017 but i'm

  8. How do I get the current date in JavaScript? - Stack Overflow

    Oct 7, 2009 · 3045 Want to improve this post? Provide detailed answers to this question, including citations and an explanation of why your answer is correct. Answers without enough detail may be …

  9. javascript - How to convert an ISO date to the date format yyyy-mm …

    Nov 10, 2016 · How can I get a date having the format yyyy-mm-dd from an ISO 8601 date? My 8601 date is 2013-03-10T02:00:00Z How can I get the following? 2013-03-10

  10. How to convert a full date to a short date in javascript?

    Jan 9, 2010 · The format you created is not a Date object: it's a string, you just created it with data coming out of the Date object. You can try to add your own formatting method to the prototype of the …