如何显示英文日期格式 目前数据库读出来的如期是2009-10-28 我如何把他动态转换为 “28 October 2009” 这样的日期格式 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 java.util.Date date = java.sql.Date.valueOf("2009-10-28");SimpleDateFormat df = new SimpleDateFormat("dd MMMM yyyy", Locale.ENGLISH);System.out.println(df.format(date)); 确实,涉及到日期格式化,就用java.text.SimpleDateFormat /** * 系统时间转换为 September18,2009 格式 * @return */ public static String getEDate() { Date date = new Date(); SimpleDateFormat sdf = new SimpleDateFormat("MMMMdd,yyyy",Locale.US); String times = sdf.format(date); return times; }把MMMMdd,yyyy改成dd MMMM yyyy Unable to compile class for JSP hibernate 数据备份问题 CSS表格边框样式 自动换行的问题 如何确定网页内只获取某类控件的值 一个小问题?请教 本地的VC程序怎么调用服务器的java servlet实现文件上传? 有办法实现在多个JSP页面中共用一个javabean实例对象吗 servlet不能运行,大家帮忙看看 springMvc jsp提交表单跳转问题 远程读取网页问题 js中获取下拉框的值!!!
java.util.Date date = java.sql.Date.valueOf("2009-10-28");
SimpleDateFormat df = new SimpleDateFormat("dd MMMM yyyy", Locale.ENGLISH);
System.out.println(df.format(date));
* 系统时间转换为 September18,2009 格式
* @return
*/
public static String getEDate() {
Date date = new Date();
SimpleDateFormat sdf = new SimpleDateFormat("MMMMdd,yyyy",Locale.US);
String times = sdf.format(date);
return times;
}把MMMMdd,yyyy改成dd MMMM yyyy