# C1.Schedule.Appointment.End

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Schedule_Appointment_End_" data-uid="C1.Schedule.Appointment.End*">End Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Schedule_Appointment_End_" data-uid="C1.Schedule.Appointment.End*"></a>
<h4 id="C1_Schedule_Appointment_End" data-uid="C1.Schedule.Appointment.End">End</h4>
<div class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> value determining
the end date and time of the appointment.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DateTime End { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property [End] As Date</code></pre>
</div>
<h5 id="C1_Schedule_Appointment_End_remarks">Remarks</h5>
<div class="markdown level1 remarks"><pre><code>&lt;p&gt;The &lt;xref href=&quot;C1.Schedule.Appointment.End&quot; data-throw-if-not-resolved=&quot;false&quot;&gt;&lt;/xref&gt; property is usually specified 
</code></pre>
<p>by the <a class="xref" href="C1.Schedule.Appointment.Start.html#C1_Schedule_Appointment_Start">Start</a> and <a class="xref" href="C1.Schedule.Appointment.Duration.html#C1_Schedule_Appointment_Duration">Duration</a> properties,
and is always calculated as <a class="xref" href="C1.Schedule.Appointment.End.html#C1_Schedule_Appointment_End">End</a> = <a class="xref" href="C1.Schedule.Appointment.Start.html#C1_Schedule_Appointment_Start">Start</a> + <a class="xref" href="C1.Schedule.Appointment.Duration.html#C1_Schedule_Appointment_Duration">Duration</a>.
When setting the <a class="xref" href="C1.Schedule.Appointment.End.html#C1_Schedule_Appointment_End">End</a> property, the <a class="xref" href="C1.Schedule.Appointment.Start.html#C1_Schedule_Appointment_Start">Start</a> property
retains its value, and the <a class="xref" href="C1.Schedule.Appointment.Duration.html#C1_Schedule_Appointment_Duration">Duration</a> is changed according
to the new value of the <a class="xref" href="C1.Schedule.Appointment.End.html#C1_Schedule_Appointment_End">End</a> property.
If the new <a class="xref" href="C1.Schedule.Appointment.End.html#C1_Schedule_Appointment_End">End</a> property's value is less than
the <a class="xref" href="C1.Schedule.Appointment.Start.html#C1_Schedule_Appointment_Start">Start</a> property's value, then an exception will be raised.</p>
<p>At setting this property, if it's time is not equal 0:00,
or value is equal to the value of <a class="xref" href="C1.Schedule.Appointment.Start.html#C1_Schedule_Appointment_Start">Start</a> property,
the <a class="xref" href="C1.Schedule.Appointment.AllDayEvent.html#C1_Schedule_Appointment_AllDayEvent">AllDayEvent</a> property will be set to false.</p>
</div>
</div>
