Given two arguments, dateA and dateB, that can both be converted to Date instances via toDate(), return a boolean that indicates whether dateA is chronologically the same or before than dateB.
dateA
dateB
toDate()
Given two arguments,
dateAanddateB, that can both be converted to Date instances viatoDate(), return a boolean that indicates whetherdateAis chronologically the same or before thandateB.