cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Resolver I
Resolver I

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
Highlighted
Resolver I
Resolver I

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

View solution in original post

3 REPLIES 3
Highlighted
Power Apps
Power Apps

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!

Highlighted
Resolver I
Resolver I

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.

Highlighted
Resolver I
Resolver I

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

View solution in original post

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (10,385)