getNumericMonth()

この日付から月の値を数値形式で戻します。

構文

public String getNumericMonth()
 

戻り値

01、02 など、月を数値形式で表したストリング。

DtpDate toDay = new DtpDate();
 System.out.println("Today is "
    + toDay.getDayOfMonth() + "/"
    + toDay.getNumericMonth() + "/"
    + toDay.getYear() + " "
    + toDay.getHours() + ":"
    + toDay.getMinutes() + ":"
    + toDay.getSeconds());
 

参照項目

getIntMonth(), getMonth()

Copyright IBM Corp. 2004