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

jzhang
Frequent Visitor

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

PA Community Call

Power Apps Community Call

Next call is happening on April 21st at 8a PST.

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (58,279)