|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Invalid Date does not throw an exceptionHave a Windows for with a textbox.
Enter a date 2006/1/1/ -Note an additinal / on th end This is clearly an error but when text is cast to a date the extra / is automatically removed. The cast date displays as #1/1/2006#. Is this correct? Much appreciated. Gavin,
The behaviour of the datetime in strings is completely dependend from the standards in your culture or the setting of that in the station. Therefore an almost impossible to answer question for somebody outside your culture. Be aware that Canada has by instance 2 cultures. It does not help, however gives maybe an idea. Cor Show quoteHide quote "gavin" <ga***@discussions.microsoft.com> schreef in bericht news:5DCFF199-3698-4912-8F0D-6202907D7C3B@microsoft.com... > Have a Windows for with a textbox. > Enter a date 2006/1/1/ -Note an additinal / on th end > > This is clearly an error but when text is cast to a date the extra / is > automatically removed. The cast date displays as #1/1/2006#. > > Is this correct? > > Much appreciated. "gavin" <ga***@discussions.microsoft.com> schrieb: Which method are you using to convert the string to a date? 'CDate'?> Have a Windows for with a textbox. > Enter a date 2006/1/1/ -Note an additinal / on th end > > This is clearly an error but when text is cast to a date the extra / is > automatically removed. The cast date displays as #1/1/2006#. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
VB.NET - Issues with VB.NET FTP Class to UNIX FTP Server
what's up? reading xml Best Practices - Coding Convention Question How do you know when all databindings on form are complete? Reading Excel in VB.NET SQL Distinct Create 30 Day trial version how to avoid broken references when give out projects Building VB.NET Interface definitions from a COM interface Process BUG? |
|||||||||||||||||||||||