Hi Matt,
For formatting date, you should use below expression.
parseInteger(formatDateTime([%CurrentDateTime%],'yyyy'))
So your condition will be like this:
if(parseInteger(formatDateTime([%CurrentDateTime%],'yyyy'))=2022)
then APPNAME.Enum_Year._2015 else empty
In the above condition, formatDateTime will format the date in yyyy format which will result in string value
After that, ParseInteger will convert string to integer for comparison
ParseDateTime – Used to parse a string and convert to date in desired format
formatdateTime – Used to convert date to String in desired format
Hi Matt,
Use this: If formatDateTime([%BeginofCurrentYear%], ‘yyyy’]=’2015’
Hope this helps!