String syear=sy.format(date);
String smon=sm.format(date);
String sday=sd.format(date);

ps: java.util.Date类中的getYear()要加上1900才可得到实际值,getMonth()则要加上1       标签:java date timestamp sql 时间日期

 
为了您的安全,请只打开来源可靠的网址

打开网站    取消

来自: http://hi.baidu.com/zhangyx/blog/item/5fdf0a4f1b9f573caec3ab52.html

相关文章:

  • 2021-09-17
  • 2021-06-29
  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-26
  • 2021-10-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案