date-format
date-format copied to clipboard
Can you add support for `getUTCHours`?
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'