cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
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

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
News & Announcements

Community Blog

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

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (5,898)