Forum Discussion
Sharepoint list creation from Excel breaks my dates
- Feb 08, 2021
This fixes the output but really ridiculous that I have to do this workaround.
formatDateTime(addDays(outputs('Compose'),1), 'M/d')
Although the JSON corrects the way dates are displayed in my SharePoint list, Power Automate matches dates in my list minus one day against today's date. This is so confusing!
For example my SharePoint list has the items:
User1 with birthday date 2/8/1985
User2 with birthday date 2/9/1970
(dates are formatted as M/d/yyyy)
My flow has a Apply to each loop with this condition to find list dates with today's date:
formatDateTime(outputs('Compose'), 'M/d')
is equal to
formatDateTime(utcNow(),'M/d')
This fixes the output but really ridiculous that I have to do this workaround.
formatDateTime(addDays(outputs('Compose'),1), 'M/d')
- blountkrNov 15, 2021Copper Contributor
rwittels was this
formatDateTime(addDays(outputs('Compose'),1), 'M/d')
something you entered within the JSON script area? I'm having the same issue, and I do not know where in the LIST you entered this for it to correct the missing date.
- rwittelsNov 15, 2021Copper ContributorHi. Don't worry about the JSON. I import my list and leave it with one day missing on each date. I correct the dates in my automation with the formatDateTime line.