Dougpeplow
Programmer
I have a variable holding a date, in the format "dd/mm/yy"
The functions day() and Year() work fine when applied to this variable, but month() doesn't
example code:-
Dim MyDate as Date
Dim MyMonth as Integer
MyDate = 02/03/01
MyMonth = Month(MyDate) ' MyMonth should return 3 but a "Type Mismatch" error occurrs.
Please Help
The functions day() and Year() work fine when applied to this variable, but month() doesn't
example code:-
Dim MyDate as Date
Dim MyMonth as Integer
MyDate = 02/03/01
MyMonth = Month(MyDate) ' MyMonth should return 3 but a "Type Mismatch" error occurrs.
Please Help