Yes, use the constructor as follows:
Dim x As New Date(2000, 1, 1)
You can do this even after the variable has been declared as follows:
x = New Date(2006, 12, 25)
x = New Date(1981, 4, 20)
For more information on this, see the documentation (the constructor has
overloads). Good Luck!
--
Nathan Sokalski
nj********@hotmail.com http://www.nathansokalski.com/
"Mike P" <mi*******@gmail.com> wrote in message
news:e8*************@TK2MSFTNGP05.phx.gbl...
I have 3 dropdowns in my grid view in edit state, representing day,
month and year. I need to validate these controls by trying to parse
the day, month and year together as a valid DateTime. Is it possible to
do this with a Custom Validator?
*** Sent via Developersdex http://www.developersdex.com ***