Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

Format Date in "Creare SVC table"

I am trying to capture the "Created" date from my SharePoint list in the csv file. And this csv will be emailed out as an attachment. But date outputs as 2019-03-27T19:00:52Z, where I only need 2019-03-27. I tried formatdatetime but couldn't get it to work.  


Can i format the date in "Create csv table" action? or should I create a "compose" and then insert in create  csv table ? Please advice.  




Super User
Super User

Re: Format Date in "Creare SVC table"

Hi @Yudistara , thank you for your post.

Based on the information provided

You want 2019-03-27T19:00:52Z to become 2019-03-27.

The below should do that for you.

formatDateTime(body('Get_items')?['Created'], 'yyyy-MM-dd')

Note: Please be certain that your "Created" is exactly body('Get_items')?['Created'] and this should work.


If you have found my post helpful, please mark thumbs up.


Any other questions, just ask.


Thanks, Alan

Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!

Level: Powered On

Re: Format Date in "Creare SVC table"

Thank you @AlanPs1  for the help. When you meant that my "Created" is exactly body('Get_items')?['Created'], I dont see the "Created" appearing in the Dynamic content. And when i manually type the formula i get the below error.


Please let me know if I can provide additional information with my FLOW.




Helpful resources


Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

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


Incoming: New and improved badges!

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


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

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