cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MEdward
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
v-alzhan-msft
Community Support
Community Support

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.

 

 

MEdward
Frequent Visitor

 

I mean in this one (the Email Sent):

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

test4.jpg

any solution for that ?

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (3,517)