getShortMonth()

この日付から月名の短縮名表記を戻します。

構文

public String getShortMonth() 
 

戻り値

Jan、Feb など、短形式で表された月の名前。

DtpDate toDay = new DtpDate();
 DtpDate lastYear= toDay.addYears(-1);
 System.out.println("Next month is "
    + lastYear.getShortMonth() + " "
    + lastYear.getDayOfMonth() + ", "
    + lastYear.getYear() + " "
    + lastYear.getHours() + ":"
    + lastYear.getMinutes() + ":"
    + lastYear.getSeconds());
 

参照項目

getMonth(), set12ShortMonthNames(), set12ShortMonthNamesToDefault()

Copyright IBM Corp. 2004