cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
MEdward
Level: Powered On

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
Community Support Team
Community Support Team

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.

 

 

MEdward
Level: Powered On

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

MEdward
Level: Powered On

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

any solution for that ?

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,030)