getShortMonth()

Return the short name representation of the month name from this date.

Syntax

public String getShortMonth() 
 

Return values

The name of the month in the short format, such as Jan, Feb, and so on.

Examples

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());
 

See also

getMonth(), set12ShortMonthNames(), set12ShortMonthNamesToDefault()

Copyright IBM Corp. 1997, 2003