Skip to content

shortDate parser format bug #143

Description

s = s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/, "$1/$2/$3");

There is a bug in that line, when dateFormat is or the form "dd/mm/yy".
The replacement string should be $3/$2/$1, to meet the requirement of the JavaScript Date constructor.
The current replacement string is not a valid date input string for the constructor.

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