About 1,530,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 …

  7. How to format JavaScript date to mm/dd/yyyy? - Stack Overflow

    Im getting the date like 'Wed Nov 08 2017 00:00:00 GMT-0800 (Pacific Standard Time)' and putting the value in an input. Is there a way to parse the datetime into a date, add five days to …

  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 …

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

    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. javascript - How to convert a Date to UTC? - Stack Overflow

    Suppose a user of your website enters a date range. 2009-1-1 to 2009-1-3 You need to send this date to a server for some processing, but the server expects all dates and times to be in UTC. …