About 414,000 results
Open links in new tab
  1. 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 …

  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. How to show current time in JavaScript in the format HH:MM:SS?

    Aug 14, 2013 · How to show current time in JavaScript in the format HH:MM:SS? Asked 12 years, 4 months ago Modified 3 years, 7 months ago Viewed 435k times

  4. How do you display JavaScript datetime in 12 hour AM/PM format?

    Jan 17, 2012 · H, HH 24 hour time h, or hh 12 hour time (use in conjunction with a or A) The format() method returns the date in specific format.

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

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

  7. JavaScript seconds to time string with format hh:mm:ss

    431 I want to convert a duration of time, i.e., number of seconds to colon-separated time string (hh:mm:ss) I found some useful answers here but they all talk about converting to x hours and x …

  8. javascript - Timestamp to human readable format - Stack Overflow

    Well I have a strange problem while convert from unix timestamp to human representation using javascript Here is timestamp 1301090400 This is my javascript var date = new Date(timestamp * …

  9. Getting current date and time in JavaScript - Stack Overflow

    I have a script that prints the current date and time in JavaScript, but the DATE is always wrong. Here is the code: var currentdate = new Date(); var datetime = "Last Sync: " + currentdate.

  10. Javascript: output current datetime in YYYY/mm/dd hh:m:sec format

    Jul 23, 2019 · I need to output the current UTC datetime as a string with the following format: YYYY/mm/dd hh:m:sec How do I achieve that with Javascript?