Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

Configuring DateTime Picker Controls

  • Last UpdatedJul 13, 2023
  • 2 minute read

Use the DateTime Picker control to select a date or time.

Configuring DateTime Picker Controls

You can configure the DateTime Picker control to show:

  • A long format, such as Friday, August 11, 2008.

  • A short format, such as 8/11/2008.

  • Just the time, such as 9:16:36 PM.

  • A custom time format, such as 8/11/2008 9:16:36 PM.

You can also set the default value of the DateTime Picker control.

To set the long date format

  1. Select the DateTime Picker control.

  2. In the Properties Editor, set the Format property to Long.

To set the short date format

  1. Select the DateTime Picker control.

  2. In the Properties Editor, set the Format property to Short.

    To set only time display

    1. Select the DateTime Picker control.

    2. In the Properties Editor, set the Format property to Time.

      To set a custom date/time format

      1. Select the DateTime Picker control.

      2. In the Properties Editor, set the Format property to Custom.

      3. Type the time format in the value box for the CustomFormat property. Use the following letters as placeholders

        h

        The one or two-digit hour in 12-hour format.

        hh

        The two-digit hour in 12-hour format. Single digit values are preceded by a zero.

        H

        The one or two-digit hour in 24-hour format.

        HH

        The two-digit hour in 24-hour format. Single digit values are preceded by a zero.

        t

        The one-letter AM/PM abbreviation ("AM" is shown as "A").

        tt

        The two-letter AM/PM abbreviation ("AM" is shown as "AM").

        m

        The one or two-digit minute.

        mm

        The two-digit minute. Single digit values are preceded by a zero.

        s

        The one or two-digit seconds.

        ss

        The two-digit seconds. Single digit values are preceded by a zero.

        d

        The one or two-digit day.

        dd

        The two-digit day. Single digit day values are preceded by a zero.

        ddd

        The three-character day-of-week abbreviation.

        dddd

        The full day-of-week name.

        M

        The one or two-digit month number.

        MM

        The two-digit month number. Single digit values are preceded by a zero.

        MMM

        The three-character month abbreviation.

        MMMM

        The full month name.

        y

        The one-digit year (2001 is shown as "1").

        yy

        The last two digits of the year (2001 is shown as "01").

        yyyy

        The full year (2001 is shown as "2001").

        You can use any other characters, except "g" in the property. These characters then appear at design time and run time in the control.

        To set the default value in a DateTime Picker control

        1. Select the DateTime Picker control.

        2. In the Properties Editor, set the DefaultValue property to the date and time value you want to use as default at run time.

          Using Windows Common Controls

          TitleResults for “How to create a CRG?”Also Available in