ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Framework.Controls Namespace / DateTimePickerControl Class / Mode Property

In This Topic
    Mode Property (DateTimePickerControl)
    In This Topic
    Gets or sets the mode of the control. See DateTimeMode for the different possible values.
    Syntax
    Public Property Mode As DateTimeMode
    public DateTimeMode Mode {get; set;}
    Remarks
    To show the control values as a date only, set the mode to DateTimeMode.DateOnly.

    To show the control values as time only, set the mode to DateTimeMode.TimeOnly.

    To show the control values as date and time, set the mode to DateTimeMode.DateTime.

    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.2 or higher.
    See Also