SOLVED

Formatting a date in Flow

Iron Contributor

I know this is crazy, but I using a flow that requires me to update a list with the value of a year. The problem is the users does not want '2018', they only want '18'. Based on the information I have found there is no way to format a date 'YY' ...

 

Am I losing my mind?

2 Replies
best response confirmed by Mike Dumka (Iron Contributor)
Solution

Hi @Mike Dumka,

 

You can use a custom date format to achieve this. 

 

Using Flow's expression builder, select the formatDateTime function, insert in the ( ) the dynamic content token that contains the date from which you wish to extract the year, type a comma after that, and type 'yy' (in single quotes) to pull out the year. This is essentially formatting the date as year only.

 

Does this help you?

 

Sandy

 

That was perfect, thank you @Sandy Ussia!

1 best response

Accepted Solutions
best response confirmed by Mike Dumka (Iron Contributor)
Solution

Hi @Mike Dumka,

 

You can use a custom date format to achieve this. 

 

Using Flow's expression builder, select the formatDateTime function, insert in the ( ) the dynamic content token that contains the date from which you wish to extract the year, type a comma after that, and type 'yy' (in single quotes) to pull out the year. This is essentially formatting the date as year only.

 

Does this help you?

 

Sandy

 

View solution in original post