An Interest In:
Web News this Week
- April 3, 2024
- April 2, 2024
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
October 18, 2022 03:12 pm GMT
Original Link: https://dev.to/azure/azure-formatting-date-time-in-logic-apps-or-power-automate-3cfk
Azure Formatting Date Time in Logic Apps or Power Automate
Hi !
Everytime I need to format a date in a LogicApp or in Power Automate I start from scratch; so its time to write this down.
My most common scenario is to create a string, from the current date / time, with the following format:
[Year][Month][Date][Hour][Minute][Second]
Translated to date format will be
formatDateTime(utcNow(), yyyyMMddHHmmss)
You can read more about this in
Custom date and time format strings
In example, I usually like to save log files, with this format. Save them to Azure Storage, or for testing, even to OneDrive.
And then, the new file will have a decent and easy name !
Happy coding!
Greetings
El Bruno
More posts in my blog ElBruno.com.
Original Link: https://dev.to/azure/azure-formatting-date-time-in-logic-apps-or-power-automate-3cfk
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To