Setting an invalid value on a Date object now makes it invalid. Setting it again but with correct values makes it valid again.