# Datetime refresh on selecting same date

**URL:** <https://forums.pega.com/t/datetime-refresh-on-selecting-same-date/3468>\
**Category:** User Experience\
**Tags:** 8-6-3, user-experience, case-management\
**Created:** [November 7, 2022, 4:28am UTC](https://forums.pega.com/t/datetime-refresh-on-selecting-same-date/3468 "2022-11-07T04:28:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tingw16594322](https://avatars.discourse-cdn.com/v4/letter/t/e8c25b/32.png) [@Tingw16594322](https://forums.pega.com/u/Tingw16594322)\
**Post date:** [November 7, 2022, 4:28am UTC](https://forums.pega.com/t/datetime-refresh-on-selecting-same-date/3468/1 "2022-11-07T04:28:58Z")

</div>

Hello,

I would want my user experience when user select the date time when they accidentally type into the datetime after they choose able to select the same date they selected

Example,

 ![eff.png](https://pega1.discourse-cdn.com/pega/original/2X/5/53dec469157b8e2fc4053ad7949a4aa23bf03047.png)

as the date time field box because it is refresh it will display the error due to refresh this section so when i select the date again it wouldnt work i have to select another date and back to this is there a way i can do this validate  
i need the refresh this section due to an error message box when appear so when user on change the date time the message error box will be gone

---

<div class="post-metadata">

**Author:** ![Bhavya](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/bhavya/32/13873_2.png) [@Bhavya](https://forums.pega.com/u/Bhavya)\
**Post date:** [November 7, 2022, 4:13pm UTC](https://forums.pega.com/t/datetime-refresh-on-selecting-same-date/3468/2 "2022-11-07T16:13:02Z")

</div>

@Tingw16594322 Hi What we have done is to restrict the user from typing after the date is added. The configuration we have is below :

 ![Date field.png](https://pega1.discourse-cdn.com/pega/original/2X/c/c03e8b78e071803adbc3e183ecf6f6a2d592487c.png)

So even if you type the full date or select from calendar icon , user wont be able to append anything to the value. Hope it helps.

Regards

Bhavya
