import java.text.*;
import java.util.*;
public class GetMonthFromDate {
public static void main(String args[]) {
Date date = new Date();
SimpleDateFormat f;
f = new SimpleDateFormat("MM");
System.out.println("Month " + f.format(date));
}
}
Home java sample program Get Month from Date
By Faizal Ps At 11:03 PM 0
Post a Comment