Get Month from Date


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

Post a Comment

Copyright © Rough Record. Designed by OddThemes