SpreadJS Documentation
DateCompareType Enumeration
Specifies the date compare type.
Members
MemberDescription
AfterIndicates whether the date time is after a certain time.
AfterEqualsToIndicates whether the date time is after or equal to a certain time.
BeforeIndicates whether the date time is before a certain time.
BeforeEqualsToIndicates whether the date time is before or equal to a certain time.
EqualsToIndicates whether the date time is equal to a certain time.
NotEqualsToIndicates whether the date time is not equal to a certain time.
Example
This example validates cell data.
var nCondition = new GcSpread.Sheets.DateCondition(GcSpread.Sheets.DateCompareType.Before, new Date(2012, 11, 31));
var validator = new GcSpread.Sheets.DefaultDataValidator(nCondition)
activeSheet.getCell(0, 0, GcSpread.Sheets.SheetArea.viewport).dataValidator(validator);
spread.highlightInvalidData(true);
activeSheet.setValue(0, 0, new Date(2012, 12, 12));
Inheritance Hierarchy

Object
   GcSpread.Sheets.DateCompareType

See Also

Reference

GcSpread.Sheets Namespace

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.