cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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
Highlighted
Anonymous
Not applicable

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
Highlighted
Anonymous
Not applicable

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

Highlighted

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (10,521)