close
1.取日期date() OR now()
格式如下
2011/8/18 下午 06:25:01
2.Cstr(year(date())) + Cstr(right("0"&month(date()),2)) + Cstr(right("0"&day(date()),2))
Cstr ---轉字串
right("0"&month(date()),2) 若為單數則在右邊補0
格式如下
20110818
3. Cstr(right("0"&hour(now()),2))+":"+ Cstr(right("0"&minute(now()),2))+":"+ Cstr(right("0"&second
(now()),2))
格式如下
11:36:53
文章標籤
全站熱搜
留言列表