MobileForms Toolkit Documentation

ItemTimeSpan.Format Property

Gets or sets the format of the time displayed in the control.

public string Format {get; set;}

Property Value

String that represent time format.

Remarks

This property determines the time format the time is displayed in. The time format is based on the user's regional settings in their operating system. Default value depend on the local date and time format . See also DateTimeFormatInfo how to format string.

If you set this property to empty string ("") in design-time, format will be set to device specific date-time format.

Note: Be carefull when setting date and time format manualy. Because it very depend on local system setting. For example, your local time format is "HH:mm" and you set "mm:HH", you may get FormatException. When using designer, use same regional date and time settings as on device, or set in designer or in run-time correct date and time format.

See Also

ItemTimeSpan Class | Resco.Controls.DetailView Namespace | CurrentInfo | DateTimeFormatInfo