VB.NET时间格式转化

时间:2016-05-23 03:12:22
【文件属性】:
文件名称:VB.NET时间格式转化
文件大小:10KB
文件格式:TXT
更新时间:2016-05-23 03:12:22
VB.NET General Date 基本类型 Format$(Now,"General Date") 返回值 2006-5-25 14:56:15 Long Date 操作系统定义的长日期 Format$(Now,"Long Date") 返回值 2006年5月25日 Medium Date 中日期(yy/mmm/dd) Format$(Now,"Medium Date") 返回值 06-5月-25 Short Date 操作系统定义的短日期 Format$(Now,"Short Date") 返回值 2006-5-25 Long Time 操作系统定义的长时间 Format$(Now,"Long Time") 返回值 15:06:36 Medium Time 带AM/PM的12小时制,不带秒

网友评论

  • 谢谢,通过例子终于弄明白了转换的一些问题。
  • 感谢,解决了我摸索了几天的问题!