Skip to content

Custom format creating wrong date #494

Closed
@atilacamurca

Description

@atilacamurca

Parsing the date 31/01/2019 (pt-br style) using dayjs_plugin_customParseFormat is creating a wrong date.

dayjs.extend(dayjs_plugin_customParseFormat);

dayjs('31/01/2019', 'DD/MM/YYYY')
// => 2019-03-03T00:00:00-03:00

https://jsfiddle.net/dpb4hfnk/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions