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. How to format date in javascript as DD-MMM-YYYY?

    May 30, 2019 · There are a huge number of questions on how to format a date, please try to write your own code then ask if you have issues. The use of Date.parse in new …

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

  6. date - Current time formatting with Javascript - Stack Overflow

    Feb 1, 2013 · I have a date format function I like to include in my standard library. It takes a format string parameter that defines the desired output. The format strings are loosely based on .Net …

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

  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. 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(); …