@HspDateDiff
This function returns the difference between two dates in days, inclusive of dates passed.
Syntax
@HspDateDiff (fromDate,toDate)
Parameter | Description |
---|---|
fromDate | The From date for date comparison |
toDate | The To date for date comparison |
Note
The return value is an integer. The fromDate and toDate parameters can either be a date in yyyymmdd format, an actual date value, or any variable.
Example
This example returns the number of days between 11-11-2010 and 01-01-2012, which is 461.
@return(@hspnumtostring(@HspDateDiff (20101111,20120101)),Error);