accept various datetime formats