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
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.
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.
I mean in this one (the Email Sent):
it show as From YYYY-MM-DD to YYYY-MM-DD
any solution for that ?