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

    3079 If you need slightly less control over formatting than the currently accepted answer, Date#toLocaleDateString can be used to create standard locale-specific renderings. The locale and …

  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. How to display a Date object in a specific format using JavaScript?

    Mar 2, 2012 · 2 Another JavaScript built-in library that you could now use to format a date, is the Intl library.

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

  5. date - Current time formatting with Javascript - Stack Overflow

    Feb 1, 2013 · I want to get current time in a specific format with javascript. With the function below and calling it will give me Fri Feb 01 2013 13:56:40 GMT+1300 (New Zealand Daylight Time) but I want …

  6. 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 it, and then format …

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

    Dec 31, 2015 · Closed 14 years ago. Possible Duplicate: Formatting a date in javascript I have this: HTML javascript

  8. Where can I find documentation on formatting a date in JavaScript ...

    Jun 29, 2009 · This is for converting a string to a date. If we look at the opposite side, that is, converting a date object to a string, until now I was under the impression that JavaScript doesn't have a built-in …

  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? <script type="text/javascript"> var date = new Date (); alert (date); </script>

  10. Javascript library for human-friendly relative date formatting

    Oct 4, 2011 · I'd like to display some dates as relative to the current date in a human-friendly format. Examples of human-friendly relative dates: 10 seconds ago 20 minutes from now 1 day ago 5 weeks …