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

Converting Date When Inserting Row

Hi,

 

I'm brand new to Flow. I am working on building a flow that pulls a list from Sharepoint to Excel. Everything is working fine except I can't figure out how to convert the date format of the Modified column in Sharepoint from UTC to a short date for each row insterted in Excel. I think I understand the expression I need to do it, but I can't figure out the correct syntax for it. Any help is appreciated. 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Converting Date When Inserting Row

To convert from a date/time to just a day with time set to 12:00 AM, use the "startOfDay" expression:

startOfDay([Date form SharePoint column from dynamic content], 'd')

 

To simply format the date use the formatDateTime expression:

formatDateTime([Your SharePoint Date Column from Dynamic Content], 'd')

 

The 'd' parameter specifies the short date format.

 

In addition, you'll also want to format the column in your Excel table appropriately.  I'm not sure you even need to do anything for formatting in Flow if you set a date format for you Excel column.

 

 

 

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

2 REPLIES 2
Highlighted
Super User III
Super User III

Re: Converting Date When Inserting Row

To convert from a date/time to just a day with time set to 12:00 AM, use the "startOfDay" expression:

startOfDay([Date form SharePoint column from dynamic content], 'd')

 

To simply format the date use the formatDateTime expression:

formatDateTime([Your SharePoint Date Column from Dynamic Content], 'd')

 

The 'd' parameter specifies the short date format.

 

In addition, you'll also want to format the column in your Excel table appropriately.  I'm not sure you even need to do anything for formatting in Flow if you set a date format for you Excel column.

 

 

 

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

Highlighted
Frequent Visitor

Re: Converting Date When Inserting Row

Hi, Thank you! You're right. Once I set the column in the target excel table to date it converted the field on its own. I was overthinking it.

Helpful resources

Announcements
Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Top Solution Authors
Users online (7,802)