ASP源码
PHP源码
.NET源码
JSP源码
2.
<%
ja***text.SimpleDateFormat formatter = new ja***text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
ja***util.Date currentTime = new ja***util.Date();//得到当前系统时间
String str_date1 = fo***tter.format(currentTime); //将日期时间格式化
String str_date2 = cu***ntTime.toString(); //将Date型日期时间转换成字符串形式
%>