cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
akharns
Post Patron
Post Patron

Date Formatting (TEXT function)

This is a major regression for me.  It's a little embarrassing.  I know I've done this before...

 

I have a simple demo app with one field, which tries to format a date, using something like Text("Dec 1,2019","[$-en-US]mmm-dd") or Text("12/1/2019",LongDate).  No matter what I use for the date value or for the format, the output is always exactly the input value, with no reformatting. 

 

What's up with this???   LOL   This should be an easy answer, I think.  There's nothing complicated going on.

1 ACCEPTED SOLUTION

Accepted Solutions
Eelman
Super User
Super User

@akharns wrap your dates in DateValue() ie

 

Text(DateValue("Dec 1,2019"),"[$-en-US]mmm-dd"), and

 

Text(DateValue("12/1/2019"),LongDate)

View solution in original post

2 REPLIES 2
Eelman
Super User
Super User

@akharns wrap your dates in DateValue() ie

 

Text(DateValue("Dec 1,2019"),"[$-en-US]mmm-dd"), and

 

Text(DateValue("12/1/2019"),LongDate)

Yep, that does it.  I thought I tried that.  Thanks.

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (2,583)