setformat
wks.col.setformat(format[, subformat , customFormat])
Setformat method combines functionalities of the format and subformat methods, additionally allowing custom formats to be specified. This object method takes up to 3 arguments, See wks.col.format and wks.col.subformat properties. Only set subformat and customformat if format is 4 (date)
// Surround non-date characters in specifier by single quotes: wks.col2.SetFormat(4, 22, yyyy'.'MM'.'dd);
Note that all non-date characters included in the custom string specifier must be surrounded by single quotes.
Dates entered into this column will now be displayed in the specified custom format. Enter 07-29-09 into one or more cells and confirm the display to show 2009.07.29.
07-29-09
2009.07.29
wks.col.format, wks.col.subformat