Calendar.PeriodAsString Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
A string representation of the day period.
- Attributes
See also
- PeriodAsString(Int32)
- Calendar, date, and time controls
- Calendar sample
- Date and time formatting sample
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
A string representation for the day period.
- Attributes