# Default time to date time picker- Perspective

**URL:** <https://forum.inductiveautomation.com/t/default-time-to-date-time-picker-perspective/72025>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [April 4, 2023, 3:27pm UTC](https://forum.inductiveautomation.com/t/default-time-to-date-time-picker-perspective/72025 "2023-04-04T15:27:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yogesh\_Garud](https://avatars.discourse-cdn.com/v4/letter/y/db5fbb/32.png) [@Yogesh\_Garud](https://forum.inductiveautomation.com/u/Yogesh_Garud)\
**Post date:** [April 4, 2023, 3:27pm UTC](https://forum.inductiveautomation.com/t/default-time-to-date-time-picker-perspective/72025/1 "2023-04-04T15:27:07Z")

</div>

HELLO,  
I am using the 8.1.15 version of the ignition designer. I have one question regarding the perspective DateTime Picker.  
How to set default time 00:00 instead of 12:00 in the date time picker as mentioned in the below image.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/c/acbb3fb89621e93467a08b5a3337db467a2aab0c.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/c/dcad0cf69056fe262155c3b37b87e7203c74952e.png)

---

<div class="post-metadata">

**Author:** ![YF129701](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/yf129701/32/60498_2.png) [@YF129701](https://forum.inductiveautomation.com/u/YF129701)\
**Post date:** [April 4, 2023, 7:39pm UTC](https://forum.inductiveautomation.com/t/default-time-to-date-time-picker-perspective/72025/2 "2023-04-04T19:39:51Z")

</div>

Try setting the format to `YYYY-MM-DD hh:mm` - this will change the format to 24 hour instead of 12 hour, though.

---

<div class="post-metadata">

**Author:** ![Yogesh\_Garud](https://avatars.discourse-cdn.com/v4/letter/y/db5fbb/32.png) [@Yogesh\_Garud](https://forum.inductiveautomation.com/u/Yogesh_Garud)\
**Post date:** [April 5, 2023, 6:27am UTC](https://forum.inductiveautomation.com/t/default-time-to-date-time-picker-perspective/72025/3 "2023-04-05T06:27:24Z")

</div>

Thanks for your suggestion, but as per my understanding, YYYY-MM-DD HH:mm is also a 24-hour format.  
and it's working properly. I just have to change the default value from 12:00 to 00:00.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [April 5, 2023, 8:06am UTC](https://forum.inductiveautomation.com/t/default-time-to-date-time-picker-perspective/72025/4 "2023-04-05T08:06:05Z")

</div>

Try binding the value property to `midnight(now(0))`

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/3/330b1a75f12e38aad573ef28d94e0eb84a5d22db.png)

---

<div class="post-metadata">

**Author:** ![Yogesh\_Garud](https://avatars.discourse-cdn.com/v4/letter/y/db5fbb/32.png) [@Yogesh\_Garud](https://forum.inductiveautomation.com/u/Yogesh_Garud)\
**Post date:** [April 5, 2023, 2:20pm UTC](https://forum.inductiveautomation.com/t/default-time-to-date-time-picker-perspective/72025/5 "2023-04-05T14:20:33Z")

</div>

Thanks..  
I got the solution for this issue.

Kindly refer this link:

> [@Perspective Date Picker returns midday instead of 00:00](https://forum.inductiveautomation.com/t/perspective-date-picker-returns-midday-instead-of-00-00/65568):
>
> The Date Picker props.pickerType : date returns a datetime value of midday on the selected date. Who thought this was a good idea? Surely it should return midnight? The mode of operation creates a minor headache when bound bidirectionally to a session variable for a chart startdate, or similar.
