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

View solution in original post

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

View solution in original post

jzhang
Level: Powered On

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

Many thanks! 🙂 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
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 389 members 6,631 guests
Please welcome our newest community members: