I have a date time in string in this ISO format:
2023-08-07T09:38:43+07:00
but now I need to convert it to YYYYMMDDHHmmss format, so I expect I will get this string
20230807093843
how to do that using Javascript without using Moment or another libarary?
2
Answers
Here this is one way of doing it I guess.
Slice the string and then replace the undesired characters: