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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -