Skip to content

minDate/maxDate parsing error #13

Description

@robin-thoni

The date format seems to be ignored when passing minDate/maxDate as string instead of date object:

selection_002
selection_003

The date format is DD-MM-YYYY, but the date is parsed as MM-DD-YYYY.

To reproduce:
Change the following in demo/index.html

@@ -151,8 +151,8 @@
         <mdp-date-picker
                 ng-model="custom.date3"
                 mdp-placeholder="{{ custom.datePlaceholder3 }}"
-                mdp-min-date="custom.minDate3"
-                mdp-max-date="custom.maxDate3"
+                mdp-min-date="custom.minDateStr3"
+                mdp-max-date="custom.maxDateStr3"
                 mdp-ok-label="{{ custom.okLabel3 }}"
                 mdp-cancel-label="{{ custom.cancelLabel3 }}"
                 mdp-date-filter="custom.dateFilter3"

The minTime/maxTime parsing seems to be okay

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions