date-format icon indicating copy to clipboard operation
date-format copied to clipboard

Can you add support for `getUTCHours`?

Open rambo-panda opened this issue 1 year ago • 0 comments

because I am currently using log4j, which utilizes your work for date formatting.

Due to our syslog server requirements, I need to format the local date string truly according to the ISO 8601 standard (similar to Date.prototype.toISOString).

new Date("2024-08-08 16:11:15").toISOString(); // '2024-08-08T08:11:15.000Z'

require("date-format").asString( require("date-format").ISO8601_FORMAT, new Date('2024-08-08 16:11:15')); // '2024-08-08T16:11:15.000'

rambo-panda avatar Aug 14 '24 06:08 rambo-panda