assertDate function

Convert to Date (or POSIXct) and assert successful conversion