I have a date value in my React app that's returned from MySQL as a string in this format:
"2012-03-04T00:00:00.000+00:00"
The date gets transformed, using moment, to this format:
03/04/2012
Using moment, this is simple:
moment(myDate).format('MM/DD/YYYY')
But I'd like to change this, since moment is no longer maintained.
Is there a simple way to do this transformation with some built-in javascript date function?
The answers here and here don't help here, as they include no details on formatting the resulting date the way I need it.