cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AdamW
Helper III
Helper III

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
ScottShearer
Super User
Super User

@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
ScottShearer
Super User
Super User

@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
BiPHiT
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

 

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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (2,175)