Forum Discussion
BryceKauffman
Jul 11, 2019Copper Contributor
UTC Date Time in New Folder Name
I'm very new to Flow and I'm failing to get the UTC date time in a new filename. My flow works as follow, if an email arrives with an attachment, then save this attachment in a SharePoint online F...
Manidurai Mohanamariappan
Iron Contributor
You can use simply utcNow() in compose or if you want only date value of utc, you can use formatDateTime(utcNow(),'dd-MM-yyyy') in compose and then you can use that compose output value in file creating.
Damien_Rosario
Jul 14, 2019Silver Contributor
I used to use that method until I found out that it doesn't account for your local time zone, it only displays the date per UTC so here in Australia (as an example), the date would still show yesterdays date even though I was generating the document today.
Here's a blog that explains the UTC versus local time zone difference.
https://flow.microsoft.com/en-us/blog/working-with-dates-and-times/
Cheers
Damien