I am having problems with my VB Script I need it to out put the data to a date named file eg ddmmyy.htm I have tried several things but the format function does not work in VB Script as it does in VB any ideas?
Just use string manipulation. You can get away with a lot using script:
myDate=Date()
dd=day(myDate)
if len(dd)<2 then
dd="0" & dd
end if
mm=month(myDate)
if len(mm)<2 then
mm= "0" & mm
end if
yy=year(myDate)
yy=right(yy,2)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.