Calendar.MonthAsString 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
MonthAsString() |
Returns a string representation of the month suitable for inclusion with other date components. |
MonthAsString(Int32) |
Returns a string representation of the month suitable for inclusion with other date components. |
MonthAsString()
Returns a string representation of the month suitable for inclusion with other date components.
public:
virtual Platform::String ^ MonthAsString() = MonthAsString;
/// [Windows.Foundation.Metadata.Overload("MonthAsFullString")]
winrt::hstring MonthAsString();
[Windows.Foundation.Metadata.Overload("MonthAsFullString")]
public string MonthAsString();
function monthAsString()
Public Function MonthAsString () As String
Returns
A string representation of the month, using the most common abbreviation available.
- Attributes
See also
- MonthAsString(Int32)
- Calendar, date, and time controls
- Calendar sample
- Date and time formatting sample
Applies to
MonthAsString(Int32)
Returns a string representation of the month suitable for inclusion with other date components.
public:
virtual Platform::String ^ MonthAsString(int idealLength) = MonthAsString;
/// [Windows.Foundation.Metadata.Overload("MonthAsString")]
winrt::hstring MonthAsString(int const& idealLength);
[Windows.Foundation.Metadata.Overload("MonthAsString")]
public string MonthAsString(int idealLength);
function monthAsString(idealLength)
Public Function MonthAsString (idealLength As Integer) As String
Parameters
- idealLength
-
Int32
int
A positive integer specifying the ideal length, in characters, for the returned string, or 0 specifying the most common abbreviation available.
Returns
A string representation of the month.
- Attributes