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;
}

arrow
arrow
    全站熱搜

    Tako軒 發表在 痞客邦 留言(0) 人氣()