Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date time

Status
Not open for further replies.

EscapeUK

Programmer
Jul 7, 2000
438
GB
I have a text box that displays the date and time,

How to I add two hours on to the date.

Sometimes I also need to add a day

 
Use the Dateadd function like this :

Dateadd(interval,number,date)

To add two hours :
Dateadd("h",2,date)

PK Odendaal
pko@mweb.co.za

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top