Added Date.isValid static method. Added isValid. toStartOfDay, toEndOfDay, toStartOfUTCDay, toEndOfUTCDay instance methods