Friday, 2 June 2017

How to reformat times in javascript?

I have dates in YYYYMMDDHHmmss and I need to translate that to say Jun 6 - HH:mm

I can write a lookup table for the month conversion and code the whole thing myself. Is there a better way to go using standard javascript or node utilities?



via reza

No comments:

Post a Comment