Friday, February 24, 2012

datepart

I'm pretty new to this VB Scripting, I'm building a webpage where I'd like to be able to pick out month, day or year from a date variable, I understand this can be done by the datepart function, but it seems like I need to include a certain file or something to make it work?
It generates error '800a0005' when I try to run the code as below

d=datepart(mm,date)

You are asking in the wrong forum!!

No comments:

Post a Comment