Calendar.SetDateTime(DateTime) Calendar.SetDateTime(DateTime) Calendar.SetDateTime(DateTime) Calendar.SetDateTime(DateTime) Calendar.SetDateTime(DateTime) Method

Definition

Sets all the date and time fields to the date and time represented by the DateTime parameter.

public : void SetDateTime(DateTime value)
void SetDateTime(DateTime value) const;
public void SetDateTime(DateTimeOffset value)
Public Function SetDateTime(value As DateTimeOffset) As void
calendar.setDateTime(value);
Parameters
value
DateTimeOffset DateTimeOffset DateTimeOffset

The DateTime that is used to set all of the date and time fields.