如何把日期类型的2004-8-10转为20040810

shjqk 2004-08-01 07:22:37
我用
year(BeginDate) & month(BeginDate) & day(BeginDate)
但取得2004810
如何将取得的一位钱补零
...全文
310 点赞 收藏 27
写回复
27 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
shjqk 2004-08-03
谢谢
回复
eyun 2004-08-02
To :wubaozhang()
有创意。
回复
wubaozhang 2004-08-02
晕,也不是我创出来的,积累的经验而已

以为都懂呢,原来~~~~~~~~~~~~~~~~~~~
回复
emilsong 2004-08-02
To :wubaozhang()
有创意。
回复
hrstudy 2004-08-02
呵呵,楼上各位的方法都好经典呀,学习中,受益非浅呀。
回复
wubaozhang 2004-08-02
s1ihome(I Believe I Can Fly) ( )
sj=Year(now) & right("0"&Month(now),2) & right("0"&Day(now),2)
够简洁~~

不错不错,不愧是带红星的啊^_^
回复
sj=Year(now) & right("0"&Month(now),2) & right("0"&Day(now),2)
够简洁~~
回复
哈哈,学习楼上的,
思路真是巧妙~~~
回复
davyyan 2004-08-02
Replace(Replace(Replace(CStr(now()),"-",""),":","")," ","")
恐怕这个会头晕吧??
回复
yangtu86 2004-08-02
sj=Year(now) & right("0"&Month(now),2) & right("0"&Day(now),2)
回复
guoweidong 2004-08-02
Replace("2004-8-10","-","")
回复
guoweidong 2004-08-02
Replace(CStr(date()),"-","")
回复
guoweidong 2004-08-02
Replace(Replace(Replace(CStr(now()),"-",""),":","")," ","")
回复
kebeixueng 2004-08-02
类型定义为datestamp()
回复
wonstart 2004-08-02
有想法!
真实精彩!
回复
juge828 2004-08-02
同意 回复人: wubaozhang() ( ) 信誉:100 2004-08-01 23:53:00 得分: 0


例如:
8=RIGHT(100+8,2)=08
懂不懂你看着办吧


回复
revisit 2004-08-02
Replace("2008-08-10","-","")
回复
comstep 2004-08-02
Replace("2008-08-10","-","")
回复
smallyear 2004-08-02
year(now()) & right("0" & month(now()) ,2) & right("0" & day(now()),2)
回复
kinglately 2004-08-02
To wubaozhang() :
不错,我喜欢!:)
回复
加载更多回复
相关推荐
发帖
ASP
创建于2007-09-28

2.8w+

社区成员

ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
申请成为版主
帖子事件
创建了帖子
2004-08-01 07:22
社区公告
暂无公告