How to parse year from a date variable

  • 9 March 2021
  • 2 replies
  • 467 views

Badge +6

Using Nintex workflow in SP 2016. I have a variable that stores a date. How do I parse out year from the date field. 


2 replies

Badge +11

@guru2000 You can use Regular expression to get the 4 consecutive numbers from your date variable (Year)  Add:


Pattern:


(d{4})

Extract


Input text: Your date variable


 




 

Badge +9

Use inline function:


fn-FormatDate(DateVar,"yyyy") 

Reply