Aracılığıyla paylaş


Calendar.YearAsTruncatedString(Int32) Method

Definition

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

String

Platform::String

winrt::hstring

A string representation of the year.

Applies to

See also