in my database the time is: 2021-05-21 15:55:50.575609
How can I convert this in a human friendly output with js/react-native?
in my database the time is: 2021-05-21 15:55:50.575609
How can I convert this in a human friendly output with js/react-native?
Like this:
new Date('2021-05-21 15:55:50.575609').toString()
This will return:
Fri May 21 2021 15:55:50 GMT+0200 (Central European Summer Time)
Use this documentation if you want to use other output formats.