ComponentOne DateTimeEditors for UWP
C1DateTime Selector Help / C1DateTimeSelector Task-Based Help / Specifying the Selected Date
In This Topic
    Specifying the Selected Date
    In This Topic

    You can specify the time and date of a C1DateTimeSelector control by setting the SelectedDate property in XAML or code.

    In XAML

    To specify the initially selected date, edit your XAML markup to resemble the following:

    Markup
    Copy Code
    <Xaml:C1DateTimeSelector SelectedDate="1932, 10, 12/>
    

    In Code

    C#
    Copy Code
    c1DTS1.SelectedDate = new DateTime( 1932, 10, 12 );
    

    Visual Basic
    Copy Code
    c1DTS1.SelectedDate = New DateTime(1932, 10, 12)
    
    See Also