SMART datagrid v.1 > Classes > DataOutputOptions

Back  Forward

DataLudi.DataOutputOptions.datetimeFormat  property

String conversion format which is used to export the value of DATETIME field. 

It is the same as the way to specify in GridStyles.datetimeFormat. If specify valueCallback or valueCallbacks, this value will be ignored. And, if do not specify date value, it will be converted to the string specified by nullDateText

Defaults to undefined.

Getter
function datetimeFormat(): String
Setter
function setDatetimeFormat(value: String)
Code -1
    var s = dsMain.exportToCsv({
        datetimeFormat: 'yyyy-MM-dd',
        nullDateText: '.',
        quoted: true
    });
    DataLudi.saveTextToFile(s, 'dataludidata.csv');
See Also
nullDateText
valueCallback
valueCallbacks
booleanFormat
GridDataSet.exportToCsv
GridDataSet.exportToJson
Examples
Grid Data Set Export