|
-
Aug 30th, 2012, 06:16 PM
#7
Thread Starter
Hyperactive Member
Re: DateTime format validation method using DateTime.TryParse() always returns false?
If you're not going to do anything with the result of a .TryParse in VB.NET you can set the result to Nothing rather than creating a temporary variable you need to get rid of.
Good call on that. Actually up until now I've never considered having Nothing as the return on a .TryParse(). Thanks!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|