81,122
社区成员




<%
SimpleDateFormat df=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String dateNow=df.format(new Date());
%>
<input type="text" name="date" id="date" style="width:120px" value=<%=dateNow%> />
<input type="text" name="date" id="date" style="width:120px" value=<%=dateNow%> />
value="<%=dataNow%>"
import java.text.SimpleDateFormat;
import java.util.Date;
public class DateFormat {
public static void main(String[] args) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
System.out.println(sdf.format(new Date()));
}
}