SharePoint file name help
-
08-02-2021 - |
Pergunta
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.
Solução
Try using this formula:
formatDateTime(startOfMonth(addToTime(utcNow(), -1, 'Month')),'dd/MM/yyyy')
Licenciado em: CC-BY-SA com atribuição
Não afiliado a sharepoint.stackexchange