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

Date Format Changes from "Form to Sharepoint and Approval Mail" Hello Community,

I have issues receiving @date_and_Time from my Form. As I used Date/Time format in Share point and the Form Fields, But in Flow Approval, under details it shows as yyyy-MM-dd That is not right.

I tried to change it from Date/Time to single line sentence, but its swapped the Month with the day,

I tried to swap it manually, and it didn't work right. Any idea, how to use it;

 

->I can't use the formula answer as it's not a SharePoint thread

3 REPLIES 3
Highlighted
Community Support
Community Support

Re: Date Format Changes from "Form to Sharepoint and Approval Mail" Hello Community,

Hi @MEdward ,

 

I have made a test on my side and don't have the issue that you mentioned. The day and Month are correct on my side.

For your issue that the Month and the day is swapped, you could extract the Year, Month, and Day from the Form, and then concat the NewYear, NewMonth, NewDay to be a new date time.

1.png

 

Expression for New Year:

first(split(outputs('Compose'),'-'))

 Expression for New Month:

last(split(outputs('Compose'),'-'))

 

 Expression for New Date:

split(outputs('Compose'),'-')?[1]

 

 Expression for New Date time:

concat(outputs('NewYear'),'-',outputs('NewMonth'),'-',outputs('NewDay'))

 

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Highlighted
Frequent Visitor

Re: Date Format Changes from "Form to Sharepoint and Approval Mail" Hello Community,

 

I mean in this one (the Email Sent):

it show as From YYYY-MM-DD to YYYY-MM-DD

test4.jpg

Highlighted
Frequent Visitor

Re: Date Format Changes from "Form to Sharepoint and Approval Mail" Hello Community,

any solution for that ?

Helpful resources

Announcements
FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,473)