Calendar.PeriodAsString Calendar.PeriodAsString Calendar.PeriodAsString Calendar.PeriodAsString Calendar.PeriodAsString Method

Definition

Overloads

PeriodAsString() PeriodAsString() PeriodAsString() PeriodAsString() PeriodAsString()

Returns a string representation of the day period, such as AM or PM, that uses the most common abbreviation available.

PeriodAsString(Int32) PeriodAsString(Int32) PeriodAsString(Int32) PeriodAsString(Int32) PeriodAsString(Int32)

Returns a string representation of the day period, such as AM or PM.

PeriodAsString() PeriodAsString() PeriodAsString() PeriodAsString() PeriodAsString()

Returns a string representation of the day period, such as AM or PM, that uses the most common abbreviation available.

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

Returns

string string string

A string representation of the day period.

See also

PeriodAsString(Int32) PeriodAsString(Int32) PeriodAsString(Int32) PeriodAsString(Int32) PeriodAsString(Int32)

Returns a string representation of the day period, such as AM or PM.

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

Parameters

idealLength
Int32 Int32 Int32

A positive integer that specifies the ideal length, in characters, for the returned string; or a zero that specifies the most common abbreviation available.

Returns

string string string

A string representation for the day period.

See also