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

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

相关文章:

  • 2021-04-12
  • 2022-01-20
  • 2021-12-31
  • 2021-10-03
  • 2022-12-23
  • 2022-01-02
猜你喜欢
  • 2022-01-31
  • 2022-12-23
  • 2021-07-20
  • 2021-10-31
  • 2022-12-23
相关资源
相似解决方案