Appointment.StartTime Appointment.StartTime Appointment.StartTime Appointment.StartTime Appointment.StartTime Property

Definition

Gets or sets the starting time for the appointment. StartTime is of type DateTime.

public : DateTime StartTime { get; set; }
DateTime StartTime();

void StartTime(DateTime starttime);
public DateTimeOffset StartTime { get; set; }
Public ReadWrite Property StartTime As DateTimeOffset
var dateTimeOffset = appointment.startTime;
appointment.startTime = dateTimeOffset;

Property Value

DateTimeOffset DateTimeOffset DateTimeOffset

The date and time to use as the starting time for the appointment.

Additional features and requirements

Capabilities
appointmentsSystem

Remarks

This property uses an object representing date and time, and that object is represented differently depending on which language you are programming with.

  • In JavaScript, set the StartTime value with a Date object. For example, this code sets a StartTime value to a specific date and time. ```javascript appointment.startTime = new Date(2015, 9, 10, 9); // October 10th, 2015 at 9:00am


+ In Visual C++ component extensions (C++/CX), use a @Windows.Foundation.DateTime?text=DateTime structure value.
+ In C# or Microsoft Visual Basic, you use a [System.DateTimeOffset](https://docs.microsoft.com/dotnet/api/system.datetimeoffset?redirectedfrom=MSDN) value. You can use utility API of [System.DateTimeOffset](https://docs.microsoft.com/dotnet/api/system.datetimeoffset?redirectedfrom=MSDN) to generate a [DateTimeOffset](https://docs.microsoft.com/dotnet/api/system.datetimeoffset?redirectedfrom=MSDN) from different inputs (local time, parsed strings, and so on) and set the value.