Skip to content

Issue with non zero leading month 'M' format #95

Description

@rwcatalano

Looks like there is something amiss with the formatting of months when you do not included the leading zero ("MM" vs "M").

$.format.date("2016-07-01T00:00:00", "d-M-yyyy");
fails - returns "1-M-2016" not "1-7-2016" as expected.

$.format.date("2016-07-01T00:00:00", "d-MM-yyyy");
returns "1-07-2016" as expected

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