How can you add a date validation to ensure end date is greater than start date?

Version 1


    Need to ensure that change end date is always greater than start date.


    The following validation rule on Change object delivered the required date validation behaviour:

    $(if nvl(ScheduledStartDate,  null) != null &&
         nvl(ScheduledEndDate,  null) != null &&
         ScheduledStartDate > ScheduledEndDate
      then false
      else true)