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

toStartOfDay and toStartOfUTCDay is aliases of to clearTime and clearUTCTime respectively.

Thanks/