oracle 的时间怎么转为yyyyMMddHHmmss 如题。,oracle里用rs.getString()取出的时间为2008-4-22.15.24. 44. 0还有yyyy-MM-dd HH:mm:ss到yyyyMMddHHmmss时间怎么会全错啊 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在oracle中to_date(_date,'yyyy-mm-dd hh24.mi.ss')可以得到你那样的日期格式然后java里面用new SimpleDateFormat("yyMMddHHmmssZ").format(_date)可以格式化日期格式 // String s = "2008-12-13 14:15:16"; SimpleDateFormat sm = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat sn = new SimpleDateFormat("yyyyMMddHHmmss"); try { System.out.println(sn.format(sm.parse(s))); } catch (ParseException e) { // TODO 自动生成 catch 块 e.printStackTrace(); } 关于JtextPane自动换行 一道可以锻炼你思维的面试题,高手请进?在线等!!! 迅雷面试 在哪里把网页风格改成老版本的风格? 关于调用外部程序的问题,需要大家帮忙 问个mouseDragged问题 在水圆提的问题得到解决 cm4ever(小P) 进来领分 Bigger type length than Maximum 关于类继承的问题。 jbuilder8企业有下载了吗?或者是有盗版了吗? 编程求助 讨教在MyEclipse里面写JSP的问题
然后java里面用new SimpleDateFormat("yyMMddHHmmssZ").format(_date)可以格式化日期格式
//
String s = "2008-12-13 14:15:16";
SimpleDateFormat sm = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
SimpleDateFormat sn = new SimpleDateFormat("yyyyMMddHHmmss");
try {
System.out.println(sn.format(sm.parse(s)));
} catch (ParseException e) {
// TODO 自动生成 catch 块
e.printStackTrace();
}