How do I change the date format?
-
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
-
new Date('2020-11-11T19:38:15+06:00').toISOString()
or
"2020-11-11T19: 38: 15 + 06: 00" .split ("+") [0];
Anonymous
1 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!