Foxtable(狐表)用户栏目专家坐堂 → 格式化日期和时间


  共有3533人关注过本帖树形打印复制链接

主题:格式化日期和时间

帅哥哟,离线,有人找我吗?
大红袍01
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:婴狐 帖子:88 积分:518 威望:0 精华:0 注册:2015/5/3 21:12:00
  发帖心情 Post By:2015/5/3 21:19:00 [显示全部帖子]

Dim d As Date = #04/21/2015#
Dim ics() As String = {"M","F","W","APR","F","S","SE","AP","N","T","J","TW"} '定义12个月对应英文

Dim s As String = Format(#4/21/2015#,"dd@yyyy")

s = s.Replace("@", ics(d.Month-1))

msgbox(s)


 回到顶部