I just wanted to now if there is a efficient way to convert DateTime String to a Specific Pattern in Nodejs.
Example:
I will receive a string StartDateTime = "2019-10-17 09:00:00"
and i wanted to converto to two variables.
The output spected will be like:
StartDate = "2019-10-17"
StartTime = "09%3A00%3A00"
Any ideas?
const [StartDate, StartTime] = StartDateTime.split(' ');