Click to See Complete Forum and Search --> : 15 minutes lesser than current time() in ASP


pra123
05-16-2005, 06:57 AM
time() will print current time. But I want to print 15 minutes lesser than current time. So how to do this in ASP. Please reply to this.

buntine
05-16-2005, 07:09 AM
You need to use the DatAdd() function.

Dim dteTime: dteTime = DateAdd("n", -15, Time())

Regards.

pra123
05-16-2005, 07:24 AM
You need to use the DatAdd() function.

Dim dteTime: dteTime = DateAdd("n", -15, Time())

Regards.

Thanks for your reply.

buntine
05-16-2005, 07:27 AM
No worries.