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.

  1. Use formatDateTime function function with Utcnow(). Below is the expression we used.

formatDateTime(utcNow(),’yyyy’)

Output –

  1. Expression to get current date
   formatDateTime(utcNow(),'dd')

2. Expression to get the current Month

   formatDateTime(utcNow(),'MM')

Hope this helps!


Share Story :

SEARCH BLOGS :

FOLLOW CLOUDFRONTS BLOG :


Secured By miniOrange