cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sydknee
New Member

Dates changing format from 1/11/2020.

I've just started using flows but I have one set up that has been running for a couple of weeks. This puts basic details from received emails into an excel table.

 

One part changes the received date and time to just the date using formatDateTime(triggerOutputs()?['body/receivedDateTime'],'dd-MM-yyyy') and enters that into a date field in the table.  This was working fine until 1st November 2020 when it started putting the date in excel as MM-dd-yyyy)

 

The date is correct if you check the history so it could be either how it enters the date into excel or the way excel sees the data.  What is strange is the fact it changed on 1 November.

 

I've change the date format in excel to see if this corrects it but still puts it in wrong.  

 

Anyone have any idea?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
v-litu-msft
Community Support
Community Support

Hi @Sydknee,

 

The error that occurs is caused by the date after 01-11-2020 is regarded as "MM-dd-yyyy" format when you add a row to Excel via Flow.

As a workaround, you could use formateDateTime function to convert this date into "yyyy-MM-dd", for example:

formatDateTime(triggerOutputs()?['body/receivedDateTime'],'yyyy-MM-dd')

 

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

View solution in original post

1 REPLY 1
v-litu-msft
Community Support
Community Support

Hi @Sydknee,

 

The error that occurs is caused by the date after 01-11-2020 is regarded as "MM-dd-yyyy" format when you add a row to Excel via Flow.

As a workaround, you could use formateDateTime function to convert this date into "yyyy-MM-dd", for example:

formatDateTime(triggerOutputs()?['body/receivedDateTime'],'yyyy-MM-dd')

 

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

View solution in original post

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (46,961)