package www.DateTest;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
public class DateTest {
public static void main(String[] args){
Date date=new Date();
SimpleDateFormat matter=new SimpleDateFormat("yyyyMMdd HH:mm:ss");
String time=matter.format(date);
System.out.println(time);
long ss=System.currentTimeMillis();
System.out.println(ss);
Calendar c=Calendar.getInstance();
<
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
public class DateTest {
public static void main(String[] args){
Date date=new Date();
SimpleDateFormat matter=new SimpleDateFormat("yyyyMMdd HH:mm:ss");
String time=matter.format(date);
System.out.println(time);
long ss=System.currentTimeMillis();
System.out.println(ss);
Calendar c=Calendar.getInstance();
<