DateTimeX extension

on

Methods

withTime(int hour, int minute) DateTime

Available on DateTime, provided by the DateTimeX extension

Returns a new DateTime with the same date and time as this one, but with the given hour and minute.