When executing code to determine if a text box contains text that's convertable to a date I get the following error :
A first chance exception of type 'System.FormatExeption' occured in mscorlib.dl.
Additional information : String was not recognized as a valid DateTime.
This happens when executing the code :
If IsDate(txtDate.Text) Then .....
Oddly enough, when I break the program and run this command in the immediate window the command comes back with a boolean as I expect.
Anyone have any ideas?
Thanks
James
A first chance exception of type 'System.FormatExeption' occured in mscorlib.dl.
Additional information : String was not recognized as a valid DateTime.
This happens when executing the code :
If IsDate(txtDate.Text) Then .....
Oddly enough, when I break the program and run this command in the immediate window the command comes back with a boolean as I expect.
Anyone have any ideas?
Thanks
James