Get year from Current date & Time function in Cloud Flows
We wanted to get the current year but there is no direct expression only to get the year.
Below is the solution where we get the current year.
- Use formatDateTime function function with Utcnow(). Below is the expression we used.
formatDateTime(utcNow(),’yyyy’)
Output –
- Expression to get current date
formatDateTime(utcNow(),'dd')
2. Expression to get the current Month
formatDateTime(utcNow(),'MM')
Hope this helps!