SetHours
methodsReturns a new date object with replaced time part from another date object.
Parameters:targetDateDate
sourceDateNumber
Returns:Date
The date object to replace the time part of.
The date object that will be used for obtaining the time part.
Returns a new date object with a replaced time part from another date object.