close
import java.util.Date;
import java.text.SimpleDateFormat;
public String getDateTime(){
SimpleDateFormat nowFormat = new SimpleDateFormat("yyyy/MM/dd hh:mm:ss");
Date date = new Date();
String nowDate = nowFormat.format(date);
//System.out.println(nowDate);
return nowDate;
}
全站熱搜