Spread 8.0 Documentation
DLL
Support Options

Glossary Item Box

DLL


To format a date cell

  1. Call the SSSetTypeDate function and set the parameters as follows:
    1. Set the Style parameter to specify the date and century format to display.
    2. Set the Style parameter to specify the text alignment.
    3. 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

  2. Call the SSSetCellType or SSSetCellTypeRange function and set the CellType parameter to SS_TYPE_DATE.
Copyright © GrapeCity, inc. All rights reserved.