$ 0 0 It throws an error because 0D is not a valid date (it's like a NULL date or not assigned date). You need to handle this situation in code.