DLL
To format a date cell
-
Call the SSSetTypeDate function and set the parameters as follows:
- Set the Style parameter to specify the date and century format to display.
- Set the Style parameter to specify the text alignment.
- Set the Style parameter to DS_SPIN to display a spin button in the cell.
You can also use the lpFormat parameter to point to the SS_DATEFORMAT structure. Set the fields in the SS_DATEFORMAT structure as follows:To specify this formatting . . . Set this field . . . Displays century bCentury Separator character cSeparator Displays spin button bSpin Date format nFormat - Call the SSSetCellType or SSSetCellTypeRange function and set the CellType parameter to SS_TYPE_DATE.