Calendar.YearAsTruncatedString(Int32) Calendar.YearAsTruncatedString(Int32) Calendar.YearAsTruncatedString(Int32) Calendar.YearAsTruncatedString(Int32) Calendar.YearAsTruncatedString(Int32) Method

Definition

Returns a string representation of the year, optionally truncated.

public : Platform::String YearAsTruncatedString(int remainingDigits)
winrt::hstring YearAsTruncatedString(int32_t remainingDigits) const;
public string YearAsTruncatedString(Int32 remainingDigits)
Public Function YearAsTruncatedString(remainingDigits As Int32) As string
var string = calendar.yearAsTruncatedString(remainingDigits);

Parameters

remainingDigits
Int32 Int32 Int32

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 string string

A string representation of the year.