Jaa


Calendar.PeriodAsString Method

Definition

Overloads

PeriodAsString()

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

PeriodAsString(Int32)

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

PeriodAsString()

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

public:
 virtual Platform::String ^ PeriodAsString() = PeriodAsString;
/// [Windows.Foundation.Metadata.Overload("PeriodAsFullString")]
winrt::hstring PeriodAsString();
[Windows.Foundation.Metadata.Overload("PeriodAsFullString")]
public string PeriodAsString();
function periodAsString()
Public Function PeriodAsString () As String

Returns

String

Platform::String

winrt::hstring

A string representation of the day period.

Attributes

See also

Applies to

PeriodAsString(Int32)

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

public:
 virtual Platform::String ^ PeriodAsString(int idealLength) = PeriodAsString;
/// [Windows.Foundation.Metadata.Overload("PeriodAsString")]
winrt::hstring PeriodAsString(int const& idealLength);
[Windows.Foundation.Metadata.Overload("PeriodAsString")]
public string PeriodAsString(int idealLength);
function periodAsString(idealLength)
Public Function PeriodAsString (idealLength As Integer) As String

Parameters

idealLength
Int32

int

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

Platform::String

winrt::hstring

A string representation for the day period.

Attributes

See also

Applies to