Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.01 KB

calendar_yearaspaddedstring_124899132.md

File metadata and controls

28 lines (19 loc) · 1.01 KB
-api-id -api-type
M:Windows.Globalization.Calendar.YearAsPaddedString(System.Int32)
winrt method

Windows.Globalization.Calendar.YearAsPaddedString

-description

Returns a string representation of the year, optionally zero-padded.

-parameters

-param minDigits

The minimum number of integer digits to be displayed. If the year does not have enough integer digits, it will be padded with zeros to the correct amount. For example, for the year 42, a parameter of 1 or 2 returns 42, and a parameter of 3 returns 042.

-returns

A string representation of the year.

-remarks

-examples

-see-also

Calendar, date, and time controls, Calendar sample, Date and time formatting sample