Java tutorial
import java.text.DateFormat; import java.util.Date; import java.util.Locale; public class Main { public static void main(String[] argv) throws Exception { DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG, Locale.getDefault()); String s = dateFormat.format(new Date()); System.out.println(s); } }