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;
}
請先 登入 以發表留言。