Compare two dates

Hi how can i compare two dates 

#set($date1=''2018-07-31")(date format yyyy-mm-dd)

#set($date2="2018-07-20")(date format yyyy-mm-dd)

My requirement is to compare  dates only on month and year.

for above dates the result should be a Boolean value of true

Parents Reply Children
No Data