Function composition (and functions returning functions) for date time validation and creation.