core - How to compare two different dates in velocity in Java? -


 #set( $currentdate = 'june 1,2016')   #set( $settledate = 'dec 1,2016')      #if( $currentdate < $settledate)        <li>xyz</li>      #end 

you can use comparison tool difference function

  $date.difference('2016-12-01','2016-06-01') 

or whenis

  $date.whenis('2016-12-01','2016-06-01') 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -