I am trying to build a function that will receive a DateTime and an Integer and then return a new DateTime:
The scenerio is, I'm working with daily schedule recurrences. A daily schedule recurrence will look something like:
Starting on June 19, 2004 at 4:30PM (this is the DateTime that will be passed to the function), run the schedule every 4 (this will be the integer that is passed to the function) days.
The function will take the two values (datetime and integer) and determine what the next "runtime" of the schedule is. Keep in mind that the next runtime must be equal or greater than Now().
Anyone have any helpful hints on how I should go about this.
tia
Code:
Function GetNextDate(ByVal myDate As DateTime,ByVal myInt As Integer) As DateTime
The scenerio is, I'm working with daily schedule recurrences. A daily schedule recurrence will look something like:
Starting on June 19, 2004 at 4:30PM (this is the DateTime that will be passed to the function), run the schedule every 4 (this will be the integer that is passed to the function) days.
The function will take the two values (datetime and integer) and determine what the next "runtime" of the schedule is. Keep in mind that the next runtime must be equal or greater than Now().
Anyone have any helpful hints on how I should go about this.
tia