cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gioce
Helper II
Helper II

trasform date

sorry my english ... i have a need. I have the date in a table sql in 20200116 format in char (8) format. I need to display it in the app mask, in the 16/01/2020 format. Could you recommend me? I attach the mask Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
PowerAddict
Super User II
Super User II

If your text is a string, you can use something like this:

Text(DateValue(YourDateField.Text), "dd/mm/yyyy")

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

Thanks!
Hardit Bhatia
The Power Addict
https://thepoweraddict.com

View solution in original post

5 REPLIES 5
PowerAddict
Super User II
Super User II

If your text is a string, you can use something like this:

Text(DateValue(YourDateField.Text), "dd/mm/yyyy")

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

Thanks!
Hardit Bhatia
The Power Addict
https://thepoweraddict.com

View solution in original post

thanks for the reply, but if I have this function, where should I insert it to extract the data in the correct format?

 

SortByColumns(Filter('[dbo].[USR_APPUNTAMENTI]';Value(DATAAPP)>=Value(Label38.Text) And Value(DATAAPP)<=(Value(Label5_1.Text))And CODICENEGOZIO=Dropdown2.Selected.CODMAGAZ And TIPOVISITA=Dropdown4.Selected.DESCRIZIONE);"DATAAPP")

The label in your gallery where you want to display the date is where you will use the formula I have shared.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

Thanks!
Hardit Bhatia
The Power Addict
https://thepoweraddict.com

I solved it like this:

Text(DateValue(DATAAPP); "[$-it-IT]dd/mm/yyyy")

Thank's

Glad I could help! Good luck with the rest of your app! Feel free to reach out in case of any questions!

Thanks,
Hardit Bhatia
The Power Addict
https://thepoweraddict.com

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (918)