Hello all,
I need to normalize a bunch of date ranges that have begin and end dates. The system I eventually will be importing them into will only accept the date range if the begin date is before the end date (quite reasonable). The dates, which are currently strings, may have any of the following forms in the begin and end columns:
yyyy
yyyy-MM
yyyy-MM-dd
So here in this test project, I added columns for begin_date and end_date with the orginal values converted to dates:

Is there an easy way to check to verify that the begin dates fall before the end dates? Some kind of boolean true/false that begin is before end. In one set of dates, I had converted the original dates to a number by adding "0000" to anything that was yyyy and 00 to anything that way yyyy-MM, then removing the dashes and converting to number. After that I could compare numbers. But I was hoping there was a a more direct/less time-consuming way to verify that all my thousands of dates have kosher date ranges, with begin before end.
Thanks!
Olivia