Handle incorrect datetime