%DateTimeDiff meta-SQL element
Syntax
%DateTimeDiff(datetime_from, datetime_to)
Description
The %DateTimeDiff meta-SQL function returns a time value, representing the difference between two date times in minutes.
Example
The following example returns the difference in hours between the current datetime and the requested datetime:
%DateTimeDiff(%CurrentDateIn, RQSTDTTM) < " | RECORD.FIELDNAME * 60;
The following example returns the difference in minutes:
%DateTimeDiff(%CurrentDateIn, RQSTDTTM) < " | RECORD.FIELDNAME;