2 Replies Latest reply: Feb 13, 2014 6:21 AM by user11110762 RSS

Date comparison in idocscript

user11110762 Newbie
Currently Being Moderated

Hi,
I want to do a simple date comparison
<!--$date2 = "12/02/14"-->
       <!--$curr_date = formatDateWithPattern(CURRENT_DATE,"dd/MM/yy")-->
<!--$if (curr_date > parseDate(date2))-->
       hello
       <!--$endif-->

 

But the above code doesn't work as expected.The above code should evaluate to true and "hello" printed.
Can anybody has tried comparison like this before?
Regards,
Dipankar

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points