cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

How do I convert 'mm/dd/yyyy' to 'mmddyyyy' ?

I have a date that I need to convert from mm/dd/yyyy to mmddyyyy.  I can't figure out how to do it.  Can someone please help?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

@AdamW Try this expession formatDateTime(your date here,'MMddyyyy')

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

3 REPLIES 3
Highlighted
Super User III
Super User III

@AdamW Try this expession formatDateTime(your date here,'MMddyyyy')

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

Highlighted
Frequent Visitor

I would use the following expression: 

formatDateTime(variables('DATEwrong'), 'MMddyyyy')

I hope the pictures make it more clear what i mean.

 

Greetings Michael

BiPHiT_0-1599351499459.png

 

BiPHiT_1-1599351563376.png

 

Highlighted
Frequent Visitor

Thank you both. I tried that before I posted and couldn't make it work for some reason.  It works now.  Thanks!!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (15,531)