AnsweredAssumed Answered

Date function in velocity code

Question asked by Hemaprasath Jinakaran on Sep 17, 2019

I want to compare to date using if else condition, below is the code that I tried and ended with the error

#if($date.get('yyyy-mm-dd')-89=${productActivityList.get(yyyy-mm-dd).createdAt})
#set ($sortedList = $sorter.sort($!productActivityList.productDescription,"createdAt:desc"))
#set ($prodSubFamily = $sortedList[0].productDescription)
${sortedList}
#end

 

Basically I want to compare sysdate-89=datecolumn

 

Please let me know the correct syntax for it

Outcomes