Created by: Joe Dickerson on 16-04-2010 10:36:43 PM Hello,
I'm looking at the TMS API manual coding example (c# code snippet below) which creates a conference meeting, the problem is that the example just creates a start and end meeting time but doesn't use it to set the conference start and end time and all variations/attmepts to set the Conference.StartTimeUTC/EndTimeUTC time don't work for me. Can you please provide a code snippet that shows how to set the conference stat and end time?
I tried several flavors of UTC time formats but none work: : conference.StartTimeUTC = "2010-04-17T09:00:30-05:00"; conference.EndTimeUTC = "2010-04-17T10:00:00-05:00";
TMS BOOKING API SAMPLE CODE SNIPPET (note it doesn't actually set the conference start and end time). . . . // Set start date to the 12th of December, 2000 DateTime startTime = new DateTime(2000, 12, 12, 10,00,00); DateTime endTime = new DateTime(2000, 12, 12, 11,00,00); // Save the conference, saving the returned conference (where all values are now specified) try { conference = bookingService.SaveConference(conference); } catch (SoapException e) { Console.WriteLine(e.Message); }
Subject: RE: Booking API - How to set Conference start and end time Replied by: Paul Currie on 07-05-2010 01:08:06 PM
Joe Dickerson:
I tried several flavors of UTC time formats but none work: : conference.StartTimeUTC = "2010-04-17T09:00:30-05:00"; conference.EndTimeUTC = "2010-04-17T10:00:00-05:00";
TMS expects UTC time strings to be on the form defined in DateTimeFormatInfo.UniversalSortableDateTimePattern in .NET, which is "yyyy'-'MM'-'dd HH':'mm':'ss'Z'", e.g. "2010-04-17 10:00:00Z". Note that dates must be converted to UTC timezone before formatting since the format string will not contain any timezone information/offset.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: