SMART datagrid v.1 > Classes > DataField

Back  Forward

DataLudi.DataField.baseYear  property

It is the value which is used as base year when loading CSV text to data set and converting the string value to Date object in DATETIME field. 

When specify the conversion format as two-digit year, it will add this value to the converted year. If do not specify this value, 2000 will be used. 

Please refer to datetimeFormat about the conversion format. 

Defaults to NaN.

Getter
function baseYear(): Integer
Setter
function setBaseYear(value: Integer)
Code -1
    var field = dataSet.getFieldIndexEx('yearField');
    field.setBaseYear(1900);
See Also
datetimeFormat
amText
pmText
ValueType
Data Field Overview
Examples
Datetime Value