1

I have a date like this "2019-02-26T00:00:00.0000000+03:00"

To format it in some normal date i use

var myDate = "2019-02-26T00:00:00.0000000+03:00";
moment(myDate).format('DD.MM.YYYY') // 26.02.2019

or

moment(myDate).format('dddd D MMMM') // monday 26 February

Is there any way to get same result but without moment.js or any other library?

  • 2
    [Check out this answer about dates](https://stackoverflow.com/questions/3552461/how-to-format-a-javascript-date) – ZombieChowder May 13 '21 at 09:27
  • See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat – Jamiec May 13 '21 at 09:29

0 Answers0