Search - InfoPath Dev Sign in | Join | Help InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads Search More Search Options Page 3 of 8 (77 items) < Previous 1 2 3 4 5 Next > ... Last » Re: String was not recognized as a valid DateTime. I have made a little progress. The data that comes from the date field looks correct - IP is leaving the time off of it so there is no 'T' so I just left that part of the code out. In the time field, the data looks like this 12/30/1899 3:30:00 PM so it doesn't have a T either. I am making the assumption that the ... Posted to Code (Forum) by BuildPro Guru on 01-09-2009 Re: String was not recognized as a valid DateTime. Hello Hilary! Good to hear from you! Getting a couple of different errors now: Error 1 The best overloaded method match for 'System.Convert.ToDateTime(object, System.IFormatProvider)' has some invalid arguments C:\Documents and Settings\dfisher\My Documents\InfoPath Projects\Customer Care ... Posted to Code (Forum) by BuildPro Guru on 01-09-2009 Re: String was not recognized as a valid DateTime. Sorry to be such a pain, but I am afraid that I do not know much about writing code. I am now getting this error: Length cannot be less than zero. Parameter name: length This is how I have it: // Set the start date myAppointment.Start = Convert.ToDateTime(StartDateSeed.Substring(0, StartDateSeed.IndexOf("T")) + ... Posted to Code (Forum) by BuildPro Guru on 01-09-2009 Re: String was not recognized as a valid DateTime. That was the first thing that I thought of, but there are complications. I am getting the data from/storing to a SQL DB as well as publishing the form to a SharePoint forms library. The two fields in question are promoted to columns in the forms library and if I don't have them formatted as DateTime, SP tries to stick the missing ... Posted to Code (Forum) by BuildPro Guru on 01-09-2009 Re: String was not recognized as a valid DateTime. I think I may have figured it out. the two fields that I am using to create the myAppointment.Start are both date/time fields. I have formatted them to display just the date in one field and just the time in the other field, but i think that IP is putting the date and the time in both fields, but just not displaying it. Do you ... Posted to Code (Forum) by BuildPro Guru on 01-09-2009 Re: String was not recognized as a valid DateTime. myAppointment is referrming to the AppointmentItem Object for creating the appointment in the calendar. Here is the rest of the code - maybe that will help: //Add a reference to Microsoft Outlook 12.0 Object Library. Create new instance of Microsoft.Office.Interop.Outlook.Application object: Microsoft.Office.Interop.Outlook.Application ... Posted to Code (Forum) by BuildPro Guru on 01-09-2009 Re: String was not recognized as a valid DateTime. Additionally, I have found that if I omit just the +StartTimeSeed I get the appointment with the correct date, but a time of 12 am - I assume because the time element is missing. Posted to Code (Forum) by BuildPro Guru on 01-09-2009 Re: String was not recognized as a valid DateTime. Good Morning Swathip. Thank you for your assistance, but now I am getting this error: Cannot implicitly convert type 'System.DateTime' to 'Microsoft.Office.Interop.Outlook._AppointmentItem' C:\Documents and Settings\dfisher\My Documents\InfoPath Projects\Customer Care ... Posted to Code (Forum) by BuildPro Guru on 01-09-2009 String was not recognized as a valid DateTime. Hello Everyone. I am creating the ability to set an appointment in someone's calendar and use values in the form to set the attributes of the appoinement. I am getting stuck trying to convert two fields to DateTime. I get this error: System.FormatException was unhandled by user code Message="String was not ... Posted to Code (Forum) by BuildPro Guru on 01-09-2009 Re: Can InfoPath (2003 SP1) add an event in Outlook Calendar? Actually, I fixed it! I got confused with my naming conventions. Here is the final draft. //First thing you need to do is add a reference to Microsoft Outlook 12.0 Object Library. Then, create new instance of Microsoft.Office.Interop.Outlook.Application object: Microsoft.Office.Interop.Outlook.Application outlookApp = new ... Posted to Newbie Questions (Forum) by BuildPro Guru on 01-08-2009 Page 3 of 8 (77 items) < Previous 1 2 3 4 5 Next > ... Last » Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.