making datetime entry more robust