MobileForms Toolkit Documentation

ItemTouchDateTime.Format Property

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

public string Format {get; set;}

Property Value

String that represent date time format.

Remarks

This property determines the date/time format the date is displayed in. The date/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 date format is "MM/dd/yyyy" and you set "dd/MM/yyyy", 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

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