NWSMPackDate

Packs separate date values into a DOS packed date value.

Syntax

  #include <smsutapi.h> 
   
  UINT16 NWSMPackDate ( 
     UINT16   year, 
     UINT16   month, 
     UINT16   day);
  

Parameters

year

(IN) Specifies the year value, in DOS date and time format, to pack (minimum value is 1980).

month

(IN) Specifies the month value, in DOS date and time format, to pack (1-12).

day

(IN) Specifies the day value, in DOSdate and time format, to pack (1-31).

Return Values

If NWSMPackDate is successful, it returns the packed date.

Remarks

NWSMPackDate returns the year, month, and day as a 16-bit DOS packed value as follows:

  yyyyyyymmmmddddd
  

NWSMPackDate assumes that the input values are correct.

See Also

NWSMUnpackDate