Adding toObjectWithoutTime and isDateObject to the datetime library

Adding toObjectWithoutTime and isDateObject to the datetime library