NWPackDate
Packs a date into an nuint16
#include <nwmisc.h> or #include <nwcalls.h> N_EXTERN_LIBRARY (nuint16) NWPackDate ( const NW_DATE N_FAR *sDate);
#include <nwmisc.inc> Procedure NWPackDate (const sDate : pNW_DATE ) : nuint16;
Returns the packed date upon successful completion.
Many functions return dates in a packed format identical to that defined by DOS. The bits are defined as follows:
0-4 day 5-8 month 9-15 year minus 1980
NWPackDate does no validity checking on the passed information. The programmer should ensure dates are valid before passing them to NWPackDate.
NWPackDateTime, NWPackTime, NWUnpackDate, NWUnpackDateTime, NWUnpackTime