DateTime Picker - CustomTimeFormat Property

Show the time using a custom format

Member of DateTime Picker (PRIM_DTIM)

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 Value Description
h 12 hour clock with suppressed leading zero e.g. 9
hh 12 hour clock e.g. 09
H 24 hour clock with suppressed leading zero e.g. 9
HH 24 hour clock e.g. 21
m Minutes with suppressed leading zero e.g. 4
mm Minutes e.g. 04
s Seconds with suppressed leading zero e.g. 4
ss Seconds e.g. 04
f Milliseconds with suppressed leading zeros e.g. 4
ff Milliseconds with suppressed leading zeros e.g. 04
fff Milliseconds e.g. 004
u Microseconds with suppressed leading zeros e.g. 4
uu Microseconds with suppressed leading zeros e.g. 04
uuu Microseconds e.g. 004
n Nanoseconds with suppressed leading zeros e.g. 4
nn Nanoseconds with suppressed leading zeros e.g. 04
nnn Nanoseconds e.g. 004
t A or P
tt AM 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

LANSA Version 15, April 2020