Counting dates

In other words if the DeMobDate is greater than Date() it returns the number of days up until the actual DeMobDate i.e. 23
You didn't say that you can provide a demob date in the future.

If that is the case you need to limit the demob date to date-1 if is null or demobdate>date-1
 

Users who are viewing this thread

Back
Top Bottom