Added date check method