Skip to content

Can you add support for getUTCHours?  #94

Description

@rambo-panda

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'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions