Skip to main content
Nintex Community Menu Bar

How to parse year from a date variable

  • March 9, 2021
  • 2 replies
  • 725 views

Forum|alt.badge.img+7

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

Forum|alt.badge.img+11
  • Scholar
  • March 9, 2021

@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

 

 


Forum|alt.badge.img+9
  • March 11, 2021

Use inline function:

fn-FormatDate(DateVar,"yyyy")