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

    Well, what I wanted was to convert today's date to a MySQL friendly date string like 2012-06-23, and to use that string as a parameter in one of my queries.

  2. Format JavaScript date as yyyy-mm-dd - Stack Overflow

    It sad but it is simpliest way to format js date to string you need. I'm new in js, but in java it is 100 times easier to format date to any format. That is why was thinking there are easier way, but …

  3. Get String in YYYYMMDD format from JS date object?

    Jun 18, 2010 · If you don't mind including an additional (but small) library, Sugar.js provides lots of nice functionality for working with dates in JavaScript. To format a date, use the format …

  4. Javascript format date / time - Stack Overflow

    Aug 20, 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. Format a date string in javascript - Stack Overflow

    Jun 12, 2017 · Hello every i have date field of type string with iso format like this: const date = "2017-06-10T16:08:00: i want somehow to edit the string in the following format like this: 10 …

  6. How do I format a Javascript Date? - Stack Overflow

    Jun 12, 2009 · Date Format in Javascript. 2. Javascript to format date value. 1. Formatting date javascript. 0. Format ...

  7. How to display a Date object in a specific format using JavaScript?

    Mar 2, 2012 · Use the following JavaScript code to display the date on the year only format. function displayDate(){ var now = new Date(); var year=now.getFullYear(); …

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

    Dec 31, 2015 · Change Date format using Javascript. 0. Setting up jquery timeago plugin. 1.

  9. How to convert a full date to a short date in javascript?

    Jan 9, 2010 · The format you created is not a Date object: it's a string, you just created it with data coming out of the Date object. You can try to add your own formatting method to the prototype …

  10. javascript - How to convert a Date to UTC? - Stack Overflow

    I just discovered that the 1.2.3 version of Steven Levithan's date.format.js does just what I want. It allows you to supply a format string for a JavaScript date and will convert from local time to …

Refresh