Calendar.Calendar constructors

Applies to Windows and Windows Phone

Creates a Calendar object.

Overload list

ConstructorDescription
Calendar() Creates a Calendar object and initializes it to the current date and time.
Calendar(IIterable(String)) Creates a Calendar object that is initialized with a language list.
Calendar(IIterable(String), String, String) Creates a Calendar object that is initialized with a language list, calendar, and clock.
Calendar(IIterable(String), String, String, String) Creates a Calendar object that is initialized with a language list, calendar, clock, and time zone.

Remarks

If your app passes language tags used in this class to any National Language Support functions, it must first convert the tags by calling ResolveLocaleName.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Globalization
Windows::Globalization [C++]

Metadata

Windows.winmd

See also

Calendar

 

 

Show:
© 2014 Microsoft