DEV Community

Discussion on: Two string methods every JavaScript developer should know.

Collapse
 
dmratcliffe profile image
Devin Ratcliffe • Edited

This is the answer.

Also, it's strange, because I feel most people know about these string operations.

This is not the situation to use them though, it's mildly ridiculous this was the accepted answer...

To be more clear, the date function can parse more formats of dates then this fix, will the date always have a T? Also the format is decidedly js, which means it probably came from the date function already.