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!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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!