# Datetime min and max

**URL:** <https://forum.ionicframework.com/t/datetime-min-and-max/205785>\
**Category:** Ionic Framework\
**Created:** [March 2, 2021, 5:59pm UTC](https://forum.ionicframework.com/t/datetime-min-and-max/205785 "2021-03-02T17:59:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pipmm](https://avatars.discourse-cdn.com/v4/letter/p/6a8cbe/32.png) [@pipmm](https://forum.ionicframework.com/u/pipmm)\
**Post date:** [March 2, 2021, 5:59pm UTC](https://forum.ionicframework.com/t/datetime-min-and-max/205785/1 "2021-03-02T17:59:58Z")

</div>

As far as I can tell, when using 12-hour time period, like e.g. `D MMM YYYY h:mm A`, the `min` and `max` properties break; I’m not the first one staring this issue, since [https://github.com/ionic-team/ionic-framework/issues/21545](https://github.com/ionic-team/ionic-framework/issues/21545) is about the same problem (includes a Stackblitz for demonstration).  
Already tried using different formats for the min/max properties, didn’t solved, also tried using moment.js to overcome it, didn’t helped …  
Any new idea for this problem? Am I missing something?

---

<div class="post-metadata">

**Author:** ![pipmm](https://avatars.discourse-cdn.com/v4/letter/p/6a8cbe/32.png) [@pipmm](https://forum.ionicframework.com/u/pipmm)\
**Post date:** [March 17, 2021, 10:48am UTC](https://forum.ionicframework.com/t/datetime-min-and-max/205785/2 "2021-03-17T10:48:56Z")

</div>

Booop, I’m using a angular component to overcome the problem, but the design clearly isn’t from a mobile app, anyone can notice it, I would really prefer to resolve the ionic datepicker problem, any ideas?
