梦网云通讯平台 Asp 怎么按照自己的方式输出 比如 2017-04-28 10: 14: 45 想输出 0428101445 该如何显示呢?

2017-05-08 16:47:37 +08:00
 mengwangyun2017

timestampy = cstr(right("00" &Month(now()),2)) timestampm = cstr(right("00" &day(now()),2)) timestampd = cstr(right("00" &hour(now()),2)) timestamph = cstr(right("00" &Minute(now()),2)) timestamps = cstr(right("00" &Second(now()),2)) timestamp=timestampy+timestampm+timestampd+timestamph+timestamps

704 次点击
所在节点    问与答
2 条回复
mengwangyun2017
2017-05-08 16:47:53 +08:00
timestampy = cstr(right("00" &Month(now()),2))
timestampm = cstr(right("00" &day(now()),2))
timestampd = cstr(right("00" &hour(now()),2))
timestamph = cstr(right("00" &Minute(now()),2))
timestamps = cstr(right("00" &Second(now()),2))
timestamp=timestampy+timestampm+timestampd+timestamph+timestamps
ryd994
2017-05-08 18:19:19 +08:00
不了解 asp,但是一般都会有 timetostr 的函数
然后按照 ISO8601 指定格式就好

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/359913

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX