|
-
Apr 1st, 2014, 07:57 AM
#2
Re: Facing issue in Date format (string was not recognized as a valid datetime in vb.
Use TryParseExact instead... that might help... but before that, you may want to debug your code and step through it to make sure that your data is what you think it is... the sample data you gave doesn't match the code. You're splitting on a comma... only there aren't any in the data... so your tempArray only ends up with a single element.
Also, mostly out of curiosity, is there a reason you're using the RegEx split rather than just the string split function? I mean if you were splitting off of something complex, I'd get it, but since it appears to be just off the lowly comma, regex seems like overkill to me.
-tg
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
|