E
edikut
Guest
a)What does Request(“Generate”) do?
b)is the purpose of the DateDiff function and what do you think it is trying to evaluate in this example?
______________________________________…
sGenerate = Request("Generate")
bDateBegin = (Request("DateBegin") <> "")
bDateEnd = (Request("DateEnd") <> "")
If bDateBegin and bDateEnd Then
bBeginDateFollowsEndDate = DateDiff("d", CDate(Request("DateBegin")), CDate(Request("DateEnd"))) < 0
Else
bBeginDateFollowsEndDate = False
End If
______________________________________…
This is what i think its doing:
a) Request(“Generate”) - Generates a request from the server to access the database and dates.
b) The purpose of the DateDiff function is to calculate how many days there are in-between DateBegin and DateEnd
What are your thoughts?
b)is the purpose of the DateDiff function and what do you think it is trying to evaluate in this example?
______________________________________…
sGenerate = Request("Generate")
bDateBegin = (Request("DateBegin") <> "")
bDateEnd = (Request("DateEnd") <> "")
If bDateBegin and bDateEnd Then
bBeginDateFollowsEndDate = DateDiff("d", CDate(Request("DateBegin")), CDate(Request("DateEnd"))) < 0
Else
bBeginDateFollowsEndDate = False
End If
______________________________________…
This is what i think its doing:
a) Request(“Generate”) - Generates a request from the server to access the database and dates.
b) The purpose of the DateDiff function is to calculate how many days there are in-between DateBegin and DateEnd
What are your thoughts?