Detect if we were passed a datetime object