Change judging expression for DateTime.