edpatterson
IS-IT--Management
- Feb 24, 2005
- 186
vb.net 2008 express
I am getting:
'day' is a type and can not be used as an expression. month() works as expected.
I swear this worked in previous versions. I would like it for naming log files
I am getting:
'day' is a type and can not be used as an expression. month() works as expected.
I swear this worked in previous versions. I would like it for naming log files
Code:
strFileName = year(now).tostring & _
month(now).tostring.padleft(2,"0") & _
day(now).tostring.padleft(2,"0") & ".txt"