HI!
I would like to know how to add to the current time.
The following is some vbscript that I am trying to convert to javascript. Bascially when the user chooses the priority of a job it calls a function which will add either four hours or a day to the current time and put that as the time the job is due
extract of code:
case "1"
strDate += #04:00:00#
CalcDate(strDate)
case "2"
strDate += 1
CalcDate(strDate)
but how do you add four hours to the current time in java? Or a day? Does it need to be split up into hours and minutes etc?
Thanks in advance.
Bevan
I would like to know how to add to the current time.
The following is some vbscript that I am trying to convert to javascript. Bascially when the user chooses the priority of a job it calls a function which will add either four hours or a day to the current time and put that as the time the job is due
extract of code:
case "1"
strDate += #04:00:00#
CalcDate(strDate)
case "2"
strDate += 1
CalcDate(strDate)
but how do you add four hours to the current time in java? Or a day? Does it need to be split up into hours and minutes etc?
Thanks in advance.
Bevan