Java tutorial
//package com.java2s; //License from project: Apache License import java.sql.Timestamp; public class Main { public static String getSysDate() { return new Timestamp(System.currentTimeMillis()).toString().substring(0, 10); } }