Time Formats

Desktop Designer enables flexible use of time fields. Select a predefined time format or create a customized one. When defining the formats, the following notations are used.

Notation

Description

h

Hours in 12-hour format. AM/PM is added, if selected. Occupies one or two characters.

hh

Hours in 12-hour format. AM/PM is added if selected. Always occupies two characters. Leading zeros are added, if necessary.

H

Hours in 24-hour format. Occupies one or two characters.

HH

Hours in 24-hour format. Always occupies two characters.

mm

Used for minutes.

ss

Used for seconds.

Time Format Examples

Format

Printed Date

h:mm {AM/PM}

8:25PM

H:mm

20:25

hh:mm:ss

08:25:36