Java Month In MMM Format
Chapter:
Date and Time
Last Updated:
25-10-2016 18:24:22 UTC
Program:
/* ............... START ............... */
import java.text.SimpleDateFormat;
import java.util.Date;
public class JavaMonthFormat {
public static void main(String[] args) {
Date date = new Date();
SimpleDateFormat sdf = new SimpleDateFormat("MMM");
System.out.println("Current Month in MMM format : " + sdf.format(date));
}
}
/* ............... END ............... */
Output
Current Month in MMM format : Oct
Tags
Month In MMM Format, Java, Date And Time