Calendar.MonthAsPaddedNumericString(Int32) 方法

定義

傳回月份的字串表示,選擇性地以零填補。

public:
 virtual Platform::String ^ MonthAsPaddedNumericString(int minDigits) = MonthAsPaddedNumericString;
winrt::hstring MonthAsPaddedNumericString(int const& minDigits);
public string MonthAsPaddedNumericString(int minDigits);
function monthAsPaddedNumericString(minDigits)
Public Function MonthAsPaddedNumericString (minDigits As Integer) As String

參數

minDigits
Int32

int

要顯示的整數位數下限。 如果月份沒有足夠的整數數位,則會以零填補到正確的數量。 例如,針對月份 3,1 的參數會傳回 3,而 2 的參數會傳回 03。

傳回

String

Platform::String

winrt::hstring

月份的字串表示。

適用於

另請參閱