<< Click to Display Table of Contents >> Example |
!== TSystemDateTime example
dt TSystemDateTime
DateTimeFormatsG GROUP,PRE(DateTimeFormatsG)
ShortDate STRING(20)
LongDate STRING(48)
FullDateShortTime STRING(64)
FullDateLongTime STRING(64)
GeneralDateShortTime STRING(64)
GeneralDateLongTime STRING(64)
MonthDay STRING(20)
RoundTripDateTime STRING(32)
RFC1123 STRING(32)
SortableDateTime STRING(20)
ShortTime STRING(20)
LongTime STRING(20)
UniversalSortableDateTime STRING(20)
UniversalFullDateTime STRING(48)
YearMonth STRING(20)
END
CODE
dt.Now()
DateTimeFormatsG:ShortDate = dt.ToString('d')
DateTimeFormatsG:LongDate = dt.ToString('D')
DateTimeFormatsG:FullDateShortTime = dt.ToString('f')
DateTimeFormatsG:FullDateLongTime = dt.ToString('F')
DateTimeFormatsG:GeneralDateShortTime = dt.ToString('g')
DateTimeFormatsG:GeneralDateLongTime = dt.ToString('G')
DateTimeFormatsG:MonthDay = dt.ToString('M')
DateTimeFormatsG:RoundTripDateTime = dt.ToString('O')
DateTimeFormatsG:RFC1123 = dt.ToString('R')
DateTimeFormatsG:SortableDateTime = dt.ToString('s')
DateTimeFormatsG:ShortTime = dt.ToString('t')
DateTimeFormatsG:LongTime = dt.ToString('T')
DateTimeFormatsG:UniversalSortableDateTime = dt.ToString('u')
DateTimeFormatsG:UniversalFullDateTime = dt.ToString('U')
DateTimeFormatsG:YearMonth = dt.ToString('y')