Gets the current date and time.
#define INCL_DOSDATETIME #include <os2.h> PDATETIME pdt; /* Pointer to the DateTime data structure. */ APIRET ulrc; /* Return Code. */ ulrc = DosGetDateTime(pdt);