DEV Community

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

Collapse
 
devnamedjosh profile image
Josh Patton

Well written and easy to follow article.

I know your solution works, but manipulating an ISO datetime string directly makes me uncomfortable. I'd rather put it in a Date object or outside library and then format it in the desired way.

But I over-engineer things and your solution is simpler and has a lower cognitive load. Still learning this lesson.

Thanks for reminding me to keep it simple!