Display date with a short day and month name
import java.text.Format; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static void main(String[] argv) throws Exception { Format formatter = new SimpleDateFormat("EEE, dd MMM yyyy"); String today = formatter.format(new Date()); System.out.println("Today : " + today); } }