Note that comparing dates that have been converted from one format into
another should always be done with a tolerance (like comparing doubles
or floats) to allow for the fact that some accuracy may be lost (for
instance by rounding to the nearest second).
A set of methods for converting Date objects to and from strings in a valid
date format, and also validating that strings are in an Oracle date format.