About 52 results
Open links in new tab
  1. How do I get the current date in JavaScript? - Stack Overflow

    Oct 7, 2009 · 3046 Want to improve this post? Provide detailed answers to this question, including citations and an explanation of why your answer is correct. Answers without enough detail may be …

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

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

    I want a single number that represents the current date and time, like a Unix timestamp.

  4. How to get the current date or/and time in seconds

    Jan 1, 2001 · The solution I've provided was for the question "How do I get the current date/time in seconds in Javascript?", so your example in hours is not within context, but I do think your examples …

  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. Javascript to display the current date and time - Stack Overflow

    Learn how to display the current date and time using JavaScript.

  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. How to Get the Current Date in JavaScript - Scaler Topics

    Mar 26, 2024 · This guide simplifies these concepts, ensuring you can seamlessly integrate date functionalities into your dynamic web projects. How to Get the Current Date in JavaScript In …

  9. javascript - Moment get current date - Stack Overflow

    How to get current date using the Moment library? Not timestamp, but date. So please don't refer to that timestamp question already to be found. I know how to get it in regular javascript, but I n...

  10. javascript - Get Current Date using JS - Stack Overflow

    4 You should be using getDate() and not getDay(). The latter returns the zero-based day of the week (starting Sunday). You want to get the date of the month. In order to ensure you get double digits for …