Is this any use?
Note: If a date field is typecast to a datetime field, it takes the time as midnight (UTC).