|
-
May 21st, 2010, 12:03 PM
#27
Re: Some doubts about DateDifference - calculating time
 Originally Posted by akhileshbc
And what is the correct format of parameters in DateDiff() function ?
Is it like this: DateDiff("s", presentTime, previousTime)
or, like this: DateDiff("s", previousTime, presentTime)
Akhil
Short answer .. either way.
Long answer:
v1 = DateDiff("s", previousTime, presentTime) -- returns a positive number
v2 = DateDiff("s", presentTime, previousTime) -- returns a negative number
Spoo
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|