How do I change the date format?

  • 0
    There is a date format in the form '2020-11-11T19: 38: 15 + 06: 00' It is necessary to remove the time zone from there, and make it in the form of '2020-11-11T19: 38: 15'
    JavaScript Anonymous, Jun 30, 2019

  • 1 Answers
  • 0
    new Date('2020-11-11T19:38:15+06:00').toISOString()


    or

    "2020-11-11T19: 38: 15 + 06: 00" .split ("+") [0];
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!