Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.

Datepicker min-date Ignores Format #3570

@matt-major-zz

Description

@matt-major-zz

Angular: 1.3.2
Angular UI: 0.12.1

I'm formatting my dates to the format dd/MM/yyyy (UK-style) and trying to use these for the min-date attribute on the DatePicker directive.

This directive is reading the date in the format of MM/dd/yyyy, which causes (for example) April 5th to be read as May 4th.

I believe the directive should use the format provided in the datepicker-popup attribute for both min-date and max-date and default to the US style only when a custom format isn't provided.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions