Notifications
Announcements
Hi Guys,,
I have a file that needed to be copied into other file.
But the raw file have a column that have both date and time.
I only want to get the date and omit the time.
And this is my flow
Hi,
Use formatDateTime([Your date field data], 'd') as dynamic content expression. 'd' is the short date pattern format.
Regards.
Hi.. I am new
Can you please show where I will put it?
Here a small test flow I made for you :
Where the map value is : formatDateTime(item()?['Paid Date'], 'd')
Use the same expression for every date you want to format. Also pay attention to the DateTime format in the "List rows present in a table" action. it must be "Iso 8601" when you get data from Excel.
If I have answered your question, please Accept the post as solution.If you like my response, please Thumbs Up.
Hi..
Sadly I got this Error
It works on my side...
formatDateTime(item()?['Paid Date'], 'd') and formatDateTime(item()?['Add Date'], 'd')
Can you copy/paste me the whole error message, it is truncated in your screenshot.
Here you go
The execution of template action 'Select' failed: The evaluation of 'query' action 'where' expression '{"Paid Date": "@formatDateTime(item()?['Paid Date'], 'd')","Add date": "@formatDateTime(item()?['Add date'], 'd')"}' failed: 'In function 'formatDateTime', the value provided for date time string '' was not valid. The datetime string must match ISO 8601 format.'.
Have you selected the correct DateTime format (ie ISO 8601) in the "List rows present in a table" action ?
Well it seeams you have null value in one or more rows in one or more date columns...
Replace formatDateTime(item()?['Paid Date'], 'd') by if(empty(item()?['Paid Date']), '', formatDateTime(item()?['Paid Date'], 'd'))
I am looking at my sample data.. And I don't have any null value.
Thank you for answering me,, I am now logging off and hopefully tomorrow will find a solution.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 519 Super User 2025 Season 2
Tomac 296 Moderator
abm abm 232 Most Valuable Professional