Is there a way to subtract a second from a date variable?
dim mytime as date
mytime = mytime - ???
thanks
Scott
Printable View
Is there a way to subtract a second from a date variable?
dim mytime as date
mytime = mytime - ???
thanks
Scott
DateAdd function.
VB Code:
dim mytime as date mytime = Now 'subtract 1 second mytime = DateAdd("s",-1,mytime)