getNumericMonth()

Return the month value from this date in numeric format.

Syntax

public String getNumericMonth()
 

Return values

The string in the numeric form for the month, such as 01, 02, and so on.

Examples

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

See also

getIntMonth(), getMonth()

Copyright IBM Corp. 2003