cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
praneshJ
Helper III
Helper III

Issue with date picker lagging behind by 1 day.

Hello Experts,

 

I have a entity form on which I have added the date only field, while selecting the date from that date picker on my entity form it is lagging behind by one day.

please see the attached screenshot.

praneshJ_1-1604038416997.png

and the record getting inserted for previous date, I am facing the similar issue when I am having the date only field in my some other entities as well.

 

Any help on this is really appreciable!!

 

Regards,

Pranesh

 

3 REPLIES 3
OliverRodrigues
Super User
Super User

Hi, back in the CDS solution, make sure both Data Type and behavior of your date fields are set to Date-Only:

OliverRodrigues_0-1604234324186.png

 




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.

Power Apps Portals Super User


Oliver Rodrigues


 

v-bofeng-msft
Community Support
Community Support

Hi @praneshJ :

I guess your problem is caused by the time zone.

For example, if you save UCT time to CDS, and then use the datapicker control, its DateTimeZone property value is DateTimeZone.Local. The time it displays will be based on UCT time plus date offset (Time zone offset).

I have two solutions for your reference:

Soltuion 1:

Set the dropdown control's default property to

 

DateAdd(Parent.Default,-TimeZoneOffset(),Minutes)

 

 Soltuion 2:

Set the dropdown control's DateTimeZone property to

 

DateTimeZone.Local

82.gif

 

Best Regards,

Bof

v-bofeng-msft
Community Support
Community Support

Hi  @praneshJ :
Has the problem been solved?
Is there anything else I can help?
If this post helps, then please consider Accept it as the solution to help others.Thanks
Best Regards,
Bof

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (3,804)