Calendar.EraAsString Calendar.EraAsString Calendar.EraAsString Calendar.EraAsString Calendar.EraAsString Method

Definition

Overloads

EraAsString() EraAsString() EraAsString() EraAsString() EraAsString()

Returns a string representation of the era.

EraAsString(Int32) EraAsString(Int32) EraAsString(Int32) EraAsString(Int32) EraAsString(Int32)

Returns a string representation of the era. The string chosen is closest in length to the ideal length.

EraAsString() EraAsString() EraAsString() EraAsString() EraAsString()

Returns a string representation of the era.

public : Platform::String EraAsString()
winrt::hstring EraAsString() const;
public string EraAsString()
Public Function EraAsString() As string
var string = calendar.eraAsString();

Returns

string string string

A string representation of the era, using the most common abbreviation available.

Remarks

Note

This API is being updated to support the May 2019 Japanese era change. If your application supports the Japanese calendar, you should validate that it properly handles the new era. See Prepare your application for the Japanese era change for more information.

See also

EraAsString(Int32) EraAsString(Int32) EraAsString(Int32) EraAsString(Int32) EraAsString(Int32)

Returns a string representation of the era. The string chosen is closest in length to the ideal length.

public : Platform::String EraAsString(int idealLength)
winrt::hstring EraAsString(int32_t idealLength) const;
public string EraAsString(Int32 idealLength)
Public Function EraAsString(idealLength As Int32) As string
var string = calendar.eraAsString(idealLength);

Parameters

idealLength
Int32 Int32 Int32

A positive integer specifying the ideal length, in characters, for the returned string, or 0 specifying the most common abbreviation available.

Returns

string string string

A string representation of the era.

Remarks

Note

This API is being updated to support the May 2019 Japanese era change. If your application supports the Japanese calendar, you should validate that it properly handles the new era. See Prepare your application for the Japanese era change for more information.

See also