Hi Akshay ,
you can compare two dates with below statement
May be this will help you
if $currentUser/createdDate > $currentUser/changedDate
then ‘Created Date is greater’
else
if $currentUser/createdDate = $currentUser/changesDate
then ‘Created and Changed Date are iquals’
else ‘Changed Date is greater’