Showing results for 
Search instead for 
Did you mean: 
Impactful Individual
Impactful Individual

How to patch hour and minute of date time field in CDS record?



I have date time field named "FirstDate" bound with CDS Entity record as displayed below:

datetime field in form.png


I am able to patch date value with following formula:




However, I am unable to patch hour and minute value - I have already tried following formula as mentioned here -


DateValue5.SelectedDate+Time(Value(HourValue5.Selected.Value);0;0) - This doesn't work.


Can you please share right formula to patch time values?



Super User III
Super User III


DateValue5.SelectedDate + Time(Hour(Now()), Minute(Now()), Second(Now()))



If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Impactful Individual
Impactful Individual

Thank you for the response, however this patches, current minute,hour and seconds, while I need to patch selected hour and minute - How can I do that?



Impactful Individual
Impactful Individual

I was able to resolve it with following formula:


DateValue.SelectedDate + Time(Value(HourValue.Selected.Value), Value(MinuteValue.Selected.Value), Value("00"))


Thanks and Regards,

Helpful resources

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (3,607)