About 54,500 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. How to change date format in JavaScript - Stack Overflow

    Dec 31, 2015 · var mydate = new Date(form.startDate.value); After that mydate becomes javascript

  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. 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

  7. 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.

  8. How to format date in javascript as DD-MMM-YYYY?

    May 30, 2019 · There are a huge number of questions on how to format a date, please try to write your own code then ask if you have issues. The use of Date.parse in new Date(Date.parse(string)) is …

  9. How do I format a Javascript Date? - Stack Overflow

    Jun 12, 2009 · How do I format this date so that the alert displays the date in MM/dd/yyyy format?

  10. Javascript format date / time - Stack Overflow

    Aug 13, 2014 · I need to change a date/time from 2014-08-20 15:30:00 to look like 08/20/2014 3:30 pm Can this be done using javascript's Date object?