About 15,100,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. How do I get the current date in JavaScript? - Stack Overflow

    Oct 7, 2009 · Use new Date() to generate a new Date object containing the current date and time.

  3. javascript - How to add days to Date? - Stack Overflow

    Feb 19, 2009 · How to add days to current Date using JavaScript? Does JavaScript have a built in function like .NET's AddDay()?

  4. Compare two dates with JavaScript - Stack Overflow

    The easiest way to compare dates in javascript is to first convert it to a Date object and then compare these date-objects. Below you find an object with three functions:

  5. How to check whether an object is a date? - Stack Overflow

    Detecting a Date type object (as opposed to a plain Object or a string) and validating an object you expect to be a Date are two different tasks. There are a number of situations where the …

  6. Javascript Date - set just the date, ignoring time?

    Feb 11, 2017 · Javascript Date - set just the date, ignoring time? Asked 13 years, 4 months ago Modified 1 year, 4 months ago Viewed 281k times

  7. How to sort an object array by date property? - Stack Overflow

    var array = [{id: 1, date: Mar 12 2012 10:00:00 AM}, {id: 2, date: Mar 8 2012 08:00:00 AM}]; How can I sort this array by the date element in order from the date closest to the current date and …

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

    Nov 10, 2016 · The Date() class in javascript is inconsistent because of this and should really be updated to avoid this confusion. The toISOString() and toTimeString() methods should both do …

  9. Convert date to another timezone in JavaScript - Stack Overflow

    Apr 10, 2012 · I am looking for a function to convert date in one timezone to another. It need two parameters, date (in format "2012/04/10 10:10:30 +0000") timezone string ("Asia/Jakarta") The …

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