cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kevingeorget
Level: Powered On

Date Format for a label field

Hi PowerApps users,

I know this topic has been discussed over and over again.My requirement is a bit different.

I have a Date field in Powerapps form in which i have made use of the property 'Format' to display the date in the format i need -dd/mm/yyyy.

I have another label field that copies the value of date, minute and seconds field and dispalys it in Workflow history Data card. I have 10 similar date fields arranged in a table format. The label has text as below-

DateValue7&"-"&HourValue7.Selected.Value&":"&MinuteValue7.Selected.Value 

But here, it is displaying the datevalue field in the format mm/dd/yyyy. 

I used Text(DateValue7,"[$-en-US]dd/mm/yyyy") to format it and it doesn't work.

Any suggestions or ideas.

Thanks in advance.

Regards,

Kevin

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
kevingeorget
Level: Powered On

Re: Date Format for a label field

This worked for me. For some reason it didn't work yesterday but today it did.

Text(DateValue7.SelectedDate,"[$-en-US]dd/mm/yyyy")&"-"&HourValue7.Selected.Value&":"&MinuteValue7.Selected.Value

3 REPLIES 3
PowerApps Staff CarlosFigueira
PowerApps Staff

Re: Date Format for a label field

Hi @kevingeorget 

Try using the SelectedDate property of the date picker control inside the Text function, and you should get the formatting that you want:

DateValue7.SelectedDate & "-" & HourValue7.Selected.Value & ":" & MinuteValue7.Selected.Value

Hope this helps!

kevingeorget
Level: Powered On

Re: Date Format for a label field

Thanks @CarlosFigueira  for the reply. However, this doesn't work for me.

its still showing the date in mm/dd/yyyy format.

kevingeorget
Level: Powered On

Re: Date Format for a label field

This worked for me. For some reason it didn't work yesterday but today it did.

Text(DateValue7.SelectedDate,"[$-en-US]dd/mm/yyyy")&"-"&HourValue7.Selected.Value&":"&MinuteValue7.Selected.Value

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

Follow PowerApps on Twitter

Stay Up-to-Date by following PowerApps on Twitter

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

Users Online
Currently online: 39 members 4,040 guests
Please welcome our newest community members: