VA FileMan V. 22.2 Programmer Manual Banner


 

Main Chapter Getting Started Manual Advanced User Manual

Classic VA FileMan API


^%DTC: Returns Number of Days between Two Dates

Reference Type Category ICR #
Supported Classic VA FileMan 10000
Description

The ^%DTC API returns the number of days between two dates.

Input Variables
X1 (Required) One date in VA FileMan internal format. This is not returned.
X2 (Required) The other date in VA FileMan internal format. This is not returned.
Output Variables
X The number of days between the two dates. X2 is subtracted from X1.
%Y Returns: If %Y is equal to:
  • 1—The dates have both month and day values.
  • 0—The dates were imprecise, and therefore, not workable.

 


Reviewed/Updated: June 2026