method Date.setTime Private Date.setTime(time: number): number Sets the date and time value in the Date object. Parameters time: number A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT. Return Type number