This Function is used to add hours to a date time value.
Syntax:
AddHours(Date value, Hours, Date Format)
Date Value is the date to which you need to add the given number of hours.
Hours is the number of hours that needs to be added to the given date.
Date Format(Optional) : Current Date Format
Example:
DateTimePicker2.Value=AddHours(DateTimePicker1.Value,2)