jsp顯示實(shí)時(shí)時(shí)間 JSP獲取當(dāng)前時(shí)間?
JSP獲取當(dāng)前時(shí)間?jsp中獲取當(dāng)前時(shí)間代碼如下:1://獲取系統(tǒng)時(shí)間必須導(dǎo)入的//獲取系統(tǒng)時(shí)間必須導(dǎo)入的String datetime=new SimpleDateFormat("yyyy-MM-d
JSP獲取當(dāng)前時(shí)間?
jsp中獲取當(dāng)前時(shí)間代碼如下:
1:
//獲取系統(tǒng)時(shí)間必須導(dǎo)入的
//獲取系統(tǒng)時(shí)間必須導(dǎo)入的
String datetime=new SimpleDateFormat("yyyy-MM-dd").format(Calendar.getInstance().getTime()) //獲取系統(tǒng)時(shí)間
%>
2: