时间问题datetimetostr Delphi / Windows SDK/API
http://www.delphi2007.net/DelphiAPI/html/delphi_20061108174624273.html
datetimetostr(日期)  
  转换后的函数为2006-11-08   下午   03:02:06  
  我想要的格式为2006-11-08   15:02:06  
  当然不是通过formatdatetime函数  
  为什么我用datetimetostr不能转换为我想要的格式呢。  
  别人机子上都可以的  
 

可能是你机子上的日期格式与别人的不同吧

这样试一下!  
  控制面板----->区域与语言选项---->自定义---->时间标签---->将时间格式中的h变为H即可!

谢谢,问题已经解决

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-19
  • 2021-09-01
  • 2022-12-23
猜你喜欢
  • 2021-12-30
  • 2021-11-11
  • 2022-01-01
  • 2022-02-03
  • 2021-06-10
  • 2022-12-23
相关资源
相似解决方案