Delen via


Calendar.ChangeTimeZone(String) Method

Definition

Sets a new time zone to be used by this Calendar object.

public:
 virtual void ChangeTimeZone(Platform::String ^ timeZoneId) = ChangeTimeZone;
void ChangeTimeZone(winrt::hstring const& timeZoneId);
public void ChangeTimeZone(string timeZoneId);
function changeTimeZone(timeZoneId)
Public Sub ChangeTimeZone (timeZoneId As String)

Parameters

timeZoneId
String

Platform::String

winrt::hstring

An identifier from the IANA Time Zone Database which identifies the time zone that should be used (for example, "America/Los_Angeles" for Pacific Time).

Remarks

The values of other properties of this Calendar object may change as a result.

Applies to

See also