为了账号安全,请及时绑定邮箱和手机立即绑定

Date date = new Date();出错

Date date = new Date();出错

tjhjy 2017-04-22 21:44:39
<%@ page language="java" contentType="text/html; charset=UTF-8"    pageEncoding="UTF-8" import="java.text.*,java.util.*"%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Insert title here</title></head><body> <%  String path = request.getContextPath();  String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";  Date date = new Date();  SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日");  String s = sdf.format(date);  out.println(s+"<br>"); %></body></html>
查看完整描述

1 回答

?
tjhjy

TA贡献1条经验 获得超0个赞

Date date = new Date();出错

查看完整回答
反对 回复 2017-04-22
  • 1 回答
  • 0 关注
  • 1591 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信