# C1.WPF.Schedule.C1Scheduler.SelectedDateTime

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Schedule_C1Scheduler_SelectedDateTime_" data-uid="C1.WPF.Schedule.C1Scheduler.SelectedDateTime*">SelectedDateTime Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Schedule_C1Scheduler_SelectedDateTime_" data-uid="C1.WPF.Schedule.C1Scheduler.SelectedDateTime*"></a>
<h4 id="C1_WPF_Schedule_C1Scheduler_SelectedDateTime" data-uid="C1.WPF.Schedule.C1Scheduler.SelectedDateTime">SelectedDateTime</h4>
<div class="markdown level1 summary"><p>Gets or sets a DateTime currently selected in control UI.
The default value is <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime.today">Today</a>. This is a dependency property.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DateTime SelectedDateTime { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property SelectedDateTime As Date</code></pre>
</div>
<h5 id="C1_WPF_Schedule_C1Scheduler_SelectedDateTime_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
This property value is related to a <a class="xref" href="C1.WPF.Schedule.VisualInterval.html">VisualInterval</a> 
from the VisualIntervals collection that is currently
selected in control UI. If this property is set to a value that is
beyond a currently represented period of time defined by the 
<a class="xref" href="C1.WPF.Schedule.C1Scheduler.VisualStartTime.html#C1_WPF_Schedule_C1Scheduler_VisualStartTime">VisualStartTime</a> and <a class="xref" href="C1.WPF.Schedule.C1Scheduler.VisualTimeSpan.html#C1_WPF_Schedule_C1Scheduler_VisualTimeSpan">VisualTimeSpan</a> properties,
the value of the <a class="xref" href="C1.WPF.Schedule.C1Scheduler.VisualStartTime.html#C1_WPF_Schedule_C1Scheduler_VisualStartTime">VisualStartTime</a> property is changed automatically
so as to set up a period of time that includes the new 
<a class="xref" href="C1.WPF.Schedule.C1Scheduler.SelectedDateTime.html#C1_WPF_Schedule_C1Scheduler_SelectedDateTime">SelectedDateTime</a> property value.
</p>
<p>
You can use this property to bind the control to external controls that
provides DateTime navigation, for example, bind it to the SelectedDateTime property
of the C1Calendar control.
</p>
</div>
</div>
