DateTime - CustomTimeFormat Property

Show the time using a custom format

Member of DateTime (PRIM_EVDT)

Data Type - String

Details

The CustomTimeFormat property is used to format the time using the supplied formatting strings.
 
Each portion of the custom definition is evaluated independently and then concatenated to produce the output.

Time Format

Enum ValueDescription
h12 hour clock with suppressed leading zero e.g. 9
hh12 hour clock e.g. 09
H24 hour clock with suppressed leading zero e.g. 9
HH24 hour clock e.g. 21
mMinutes with suppressed leading zero e.g. 4
mmMinutes e.g. 04
sSeconds with suppressed leading zero e.g. 4
ssSeconds e.g. 04
fMilliseconds with suppressed leading zeros e.g. 4
ffMilliseconds with suppressed leading zeros e.g. 04
fffMilliseconds e.g. 004
uMicroseconds with suppressed leading zeros e.g. 4
uuMicroseconds with suppressed leading zeros e.g. 04
uuuMicroseconds e.g. 004
nNanoseconds with suppressed leading zeros e.g. 4
nnNanoseconds with suppressed leading zeros e.g. 04
nnnNanoseconds e.g. 004
tA or P
ttAM or PM

Example

A format of "hh.mm.ss TT" would produce the output "05.03.09 PM""

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2