java-date-time3

Run Settings
LanguageJava
Language Version
Run Command
import java.util.Date; public class DateDemo { public static void main(String args[]) { // 初始化 Date 对象 Date date = new Date(); // 使用toString()显示日期和时间 String str = String.format("Current Date/Time : %tc", date ); System.out.printf(str); } }
Editor Settings
Theme
Key bindings
Full width
Lines