SharePoint file name help
-
08-02-2021 - |
Question
I have a value startOfMonth(addToTime(utcNow(), -1, 'Month'))
in Create File action in Microsoft flow. It gets the first date of the month and names the file as 2020-01-01T00_00_00.0000000Z.html
.
However, I want it to just give the date as 01/01/2020
which doesn't include the rest of the digits.
Thank you.
Solution
Try using this formula:
formatDateTime(startOfMonth(addToTime(utcNow(), -1, 'Month')),'dd/MM/yyyy')
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange