时间格式转化 存在数据库的时间格式是 2010-01-29 00:00:00.0 取出来显示在页面把格式转化成2010-01-29 请朋友指点! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这个很好转的,你用simpleDateFormat就可以的,然后指定你想要的事件格式, 可以用JSTL标签的<fmt:format>也可以用struts的<bean:write name="foo" property='createTime' format='yyyy-MM-dd' /> new SimpleDateFormat("yyyy-MM-dd").format(date); SimpleDateFormat sim = new SimpleDateFormat("yyyy-MM-dd");String date = sim.format("数据库取值"); 最好在取出数据库的时候格式化:select to_char(time,'yyyy-mm-dd') from table jsp 报空错误 正则表达式 ip:port:sid JSP页面传值的问题 jsp 登录连接问题 使用FileUpload组件实现文件上传 ABB(中国)有限公司高薪诚聘 想做一个Server和Client对话的程序,请帮看一下应该怎么改。谢谢! 第一次用Tomcat,怎么设置Servlet的执行路径? 一个include的问题 那里有java Mail 写的jsp收发邮件,附件的一套基于邮件服务器的jsp程序,我急需呀 怎样产生订单随机数? hibernate 有没有重写equals和hashcode?
也可以用struts的
<bean:write name="foo" property='createTime' format='yyyy-MM-dd' />
new SimpleDateFormat("yyyy-MM-dd").format(date);
String date = sim.format("数据库取值");