Timestamp转Date

Timestamp ts = new Timestamp(System.currentTimeMillis());
Date date = new Date();
 try {
      date = ts;
       ystem.out.println(date);
} catch (Exception e) {
       e.printStackTrace();
}

猜你喜欢

转载自wgbaoweii.iteye.com/blog/2287210
今日推荐