More flexibility in parsing datetime