SMART datagrid v.1 > Classes > GridStyles

Back  Forward

DataLudi.GridStyles.datetimeFormat  property

The string conversion format which is used when display the value of DATEIMTE field in data cell. 

Getter
function datetimeFormat(): String
Setter
function setDatetimeFormat(value: String)
Code -1
    column.styles().setDatetimeFormat('yyyy-MM-dd');
Table-1  Date string conversion patterns
ValuePattern stringExplanation
Yearyyy = 15, yyyy = 2015.
MonthMMM = 01, M = 1.
Dateddd = 01, d = 1.
am/pmaa = "AM" or "PM".
HourH (0 ~ 23) HH = 01, H = 1.
Hourh (1 ~ 12) hh = 01, h = 1.
Minutemmm = 01, m = 1.
Secondsss = 01, s = 1.
MillisecondSSSS = 123, SS = 12, S = 1.
DelimiterDate delimiter of "/", ".", "-" and Hour delimiter of ":" can be used.
See Also
textFormat
booleanFormat
numberFormat
Styles Overview
Examples
Date Time Value
Column Styles