DateDiff Syntax Help

burrina

Registered User.
Local time
Today, 13:14
Joined
May 10, 2014
Messages
972
Here is my syntax,it works but when there is no difference, I need it to show 0

PHP:
VacDays: (DateDiff("d",[VacationDteFrom],[VacationDteTo]))
 
if the days are the same you WILL get zero.
Null wont give an answer.
 
No, the posted code above does not return anything! hence the post!
 
This syntax: Results in #Error
PHP:
VacDays: Nz((DateDiff("d",[VacationDteFrom],[VacationDteTo])))
 
This:
Code:
VacDays: Nz[COLOR="red"]([/COLOR]DateDiff("d",[VacationDteFrom],[VacationDteTo])[COLOR="Red"], 0)[/COLOR]

Sorry Ranman256, I thought you were offline!
 
You certainly were because I know that you know this stuff ;)
 
:o True, but it sucks to get old. Plus with my condition it puts a whooping on my thinking.

Poor,Pitiful Me ! Guess I will go off and cry in my Beer !
 

Users who are viewing this thread

Back
Top Bottom