VA FileMan V. 22.2 Programmer Manual Banner


 

Main Chapter Getting Started Manual Advanced User Manual

Classic VA FileMan API


X ^DD("DD"): Converts Internal to External Date Format

Reference Type Category ICR #
Supported Classic VA FileMan TBD
Description

There are two ways to convert a date from VA FileMan internal format (YYYMMDD) to external format:

This is the reverse of what %DT does. Simply set the variable Y equal to the internal date and execute ^DD("DD").

Input Variable
Y (Required) This contains the internal date to be converted. If this has five or six decimal places, seconds are automatically returned.
Output Variable
Y Y is returned as the external form of the date.

REF: See also the DT^DIO2 API, which takes an internal date in the variable Y and writes out its external form.

Example

Figure 2: X ^DD("DD") API—Example

>S Y=2690720.163 X ^DD("DD") W Y
JUL 20,1969@1630

This results in Y being equal to JUL 20,1969@16:30. (No space before the 4-digit year.)

 


Reviewed/Updated: June 2026