Closed fayaz-rvce closed 6 years ago
Can anyone help me format a epoch timestring to desired format. What is the correct syntax for it?
import moment from 'moment'; let epocString = '1514263410'; moment.unix(epocString).format() /* => "2017-12-25T20:43:30-08:00" */
Can anyone help me format a epoch timestring to desired format. What is the correct syntax for it?