cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jzhang
Level: Powered On

Why are the date time not shown correctly in PowerApps but are correct in CDS?

Hi, 

 

I uploaded some data from SQL server to CDS, and the date time field in CDS looks alright (below left). But when I tried to use the field in PowerApps, the date time is show as numbers (below right), and therefore cannot be used to compare with other dates. I haven't found any function in PowerApps to convert the date time format from the right to the left types. Has anyone encountered this problem before, or have any suggest   

DateTime from CDS.PNGDate Time from PowerApps.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
shailendra74
Level 10

Re: Why are the date time not shown correctly in PowerApps but are correct in CDS?

Hi @jzhang 

 

See if this helps:

 

Text(1564272000000, "dd/mm/yyyy") // 28/07/2019

 

convert the value of the dropdown using above Text function.

 

Thanks

2 REPLIES 2
shailendra74
Level 10

Re: Why are the date time not shown correctly in PowerApps but are correct in CDS?

Hi @jzhang 

 

See if this helps:

 

Text(1564272000000, "dd/mm/yyyy") // 28/07/2019

 

convert the value of the dropdown using above Text function.

 

Thanks

jzhang
Level: Powered On

Re: Why are the date time not shown correctly in PowerApps but are correct in CDS?

Many thanks! Smiley Happy If I have a datetime field, but I want to convert it to only date, how can I do that? 'Cos I found I can't actually compare to the time-level, then nothing will match 

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 416 members 5,351 guests
Please welcome our newest community members: