|
-
March 27th, 2001, 03:40 AM
#1
Time
This probably sounds really silly but how can I increase a time value whilst maintaining the time rules (60 mins per hour). I noticed that I can do:
Date + 7
without any problems but it won't do:
Time + 30
Help, please!!!!
-
March 27th, 2001, 03:48 AM
#2
Re: Time
Assuming you mean in a VB date variable, use:
Dim dtNew as date
Dim dtOld as date
dtOld = Now()
dtNew = DateAdd("n",30,dtOld)
where "h" =hours, "n" = minutes, "s" = seconds
HTH,
Duncan
-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com
-
March 27th, 2001, 03:53 AM
#3
Re: Time
Excellent!! Thank you very much!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|