Using NodeJS, I want to format a Date into the following string format:

var ts_hms = new Date(UTC);
ts_hms.format("%Y-%m-%d %H:%M:%S");

How do I do that?

21 Answers
21

Leave a Reply

Your email address will not be published. Required fields are marked *