-api-id | -api-type |
---|---|
M:Windows.Globalization.Calendar.YearAsPaddedString(System.Int32) |
winrt method |
Returns a string representation of the year, optionally zero-padded.
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.
A string representation of the year.
Calendar, date, and time controls, Calendar sample, Date and time formatting sample