Skip to content

Respect time limits in ion-datetime #6850

Closed
@oudzy

Description

@oudzy

https://guides.github.com/features/mastering-markdown/

Short description:

ion-datetime ignoring the time part inside the min and max attributes.

What to expect:

Respect the time limits provided in the min and max attributes.

Steps to reproduce:

  1. add ion-datetime to an Ionic 2 app;
  2. add min and max attributes with time;
  3. when using the ion-datetime try to select a date out of the min and max range;
  4. ion-datetime will set limits to the date but not the time.
<ion-item>
   <ion-label>dateTime input with min and max attrs</ion-label>
   <ion-datetime 
        displayFormat="MMM DD, YYYY HH:mm"
        min="2016-06-10T15:30"
        max="2017-06-10T13:30"
        [(ngModel)]="dateObj"></ion-datetime>
</ion-item> 

Ionic Version: Ionic 2 beta 8

http://plnkr.co/edit/MzqRRCy0K7TEQTWmd7I9?p=preview

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions