Need to edge out the competition for your dream job? Train for certifications today.
Experts Exchange Solution brought to you by
"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.
To: .comSubject: Problem Updating the IQ Test Info. Session Complete - System.FormatException: The specified string is not in the form required for an e-mail address.
at System.Net.Mime.MailBnfHelper.ReadMailAddress(String data, Int32& offset, String& displayName)
at System.Net.Mime.MailBnfHelper.ReadMailAddress(String data, Int32& offset)
at System.Net.Mail.MailAddressCollection.ParseValue(String addresses)
at System.Net.Mail.MailAddressCollection.Add(String addresses)
at System.Net.Mail.Message..ctor(String from, String to)
at System.Net.Mail.MailMessage..ctor(String from, String to)
at System.Net.Mail.MailMessage..ctor(String from, String to, String subject, String body)
at WebFunctions.SendEmail(String From, String ToField, String Subject, String Body, Collection Attachment) in D:\Web Sites\www..com\App_Code\WebFunctions.vb:line 142Body:System.InvalidCastException: Conversion from string "26/03/1991" to type 'Date' is not valid.
at Microsoft.VisualBasic.CompilerServices.Conversions.ToDate(String Value)
at OnlineTest_EndTest.Page_Load(Object sender, EventArgs e) in D:\Web Sites\www..com\IQTest\EndTest.aspx.vb:line 79
Open in new window
Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.
Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.
Dim DateString, DateFormat As String
Dim DateResult As Date
Dim DateProvider As CultureInfo = CultureInfo.InvariantCulture
DateString = ContactDetails.DateOfBirth
DateFormat = "dd-mm-yyy"
DateResult = Date.ParseExact(DateString, DateFormat, DateProvider)
GetResult = IsPass(CustomerID, TestID, GiftCodeID, DateResult )
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment