About 2,170,000 results
Open links in new tab
  1. Getting current date and time in JavaScript - Stack Overflow

    I think JavaScript will get the current date and time from System. Hence, set the current date and time in your Computer.

  2. How do I format a date in JavaScript? - Stack Overflow

    1756 For custom-delimited date formats, you have to pull out the date (or time) components from a DateTimeFormat object (which is part of the ECMAScript Internationalization API), and then …

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

  4. How to initialize a JavaScript Date to a particular time zone

    None of the answers were able to "initialize a JavaScript Date to a particular time zone". My scenario was a user selecting a date and a timezone (for a meeting), so whether in Unix time stamp, or UTC, …

  5. How do I get a timestamp in JavaScript? - Stack Overflow

    Date, a native object in JavaScript is the way we get all data about time. Just be careful in JavaScript the timestamp depends on the client computer set, so it's not 100% accurate timestamp.

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

  7. How do I get the current time only in JavaScript - Stack Overflow

    Apr 30, 2015 · How can I get the current time in JavaScript and use it in a timepicker? I tried var x = Date() and got: Tue May 15 2012 05:45:40 GMT-0500 But I need only current time, for example, …

  8. date - Convert a Unix timestamp to time in JavaScript - Stack Overflow

    May 11, 2009 · I am storing time in a MySQL database as a Unix timestamp and that gets sent to some JavaScript code. How would I get just the time out of it? For example, in HH/MM/SS format.

  9. javascript - How to add hours to a Date object? - Stack Overflow

    It amazes me that JavaScript's Date object does not implement an add function of any kind. I simply want a function that can do this: var now = Date.now(); var fourHoursLater = now.addHours(4);

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