cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

How to solve conflicting date types between Excel and my App

I've been using an Excel sheet to serve data into my app.

I have a column with a personalized format date, as seen here:

pix.png

 

The issue is that when I feed the data in, I'm getting a different format, and this being a label I'm not able to format the date due to the lack of the Format property.

pic2.png

I was thinking about change the "Text" property using some DateFormat function, but so far it was unsuccessful.

Any thoughts of how this can be done?

 

Thank you.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User III
Super User III

Hi @Anonymous ,

Firstly, the formatting in Excel has not effect on the underlying data read by Power Apps, however if you put this in the Text property if in a gallery

Text(ThisItem.YourFieldName,"dd/mm/yyyy")

you will get the required format.

If you are doing this in a form in a DatePicker, you just need in the Format property

"dd/mm/yyyy"

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

View solution in original post

2 REPLIES 2
WarrenBelz
Super User III
Super User III

Hi @Anonymous ,

Firstly, the formatting in Excel has not effect on the underlying data read by Power Apps, however if you put this in the Text property if in a gallery

Text(ThisItem.YourFieldName,"dd/mm/yyyy")

you will get the required format.

If you are doing this in a form in a DatePicker, you just need in the Format property

"dd/mm/yyyy"

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

View solution in original post

Anonymous
Not applicable

That did work. Nice to know that the format in excel doesn't take effect on PA.

And now I know why my solution wasn't working in the first place. I wasn't using the Text() function:

 

Text(ThisItem.YourFieldName,"dd/mm/yyyy")

 

Why is it that I need to use the Text() func. inside the Text property? At a glance it seems to be redundant...

Apologies for the ignorance, but I'm quite new to this and I still don't understand many aspects of the logic of using functions inside properties. Could you clarify you logic?

 

Thank you

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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (32,509)