Calendar.YearAsTruncatedString(Int32) 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.
Returns a string representation of the year, optionally truncated.
public:
virtual Platform::String ^ YearAsTruncatedString(int remainingDigits) = YearAsTruncatedString;
winrt::hstring YearAsTruncatedString(int const& remainingDigits);
public string YearAsTruncatedString(int remainingDigits);
function yearAsTruncatedString(remainingDigits)
Public Function YearAsTruncatedString (remainingDigits As Integer) As String
Parameters
- remainingDigits
-
Int32
int
A positive integer that represents the number of least significant digits that should be included. For example, for the year 1234, a parameter of 2 returns 34, and a parameter of 4 or larger returns 1234.
Returns
A string representation of the year.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for