cancel
Showing results for 
Search instead for 
Did you mean: 

Get the year

nvinay091
Deputy Chef I
Deputy Chef I

How to get only year from the date format 2022-01-31

4 REPLIES 4

jblanchett
Deputy Chef III
Deputy Chef III

jeff-allen
Deputy Chef I
Deputy Chef I

The Workato formula is here.

Date formulas | Workato Docs

patil-ashish
Deputy Chef I
Deputy Chef I

(2022-01-31 ).strftime("%d")

bharitha-jinka
Deputy Chef II
Deputy Chef II

"2022-01-31".to_date.strftime("%Y")