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
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro