Hi,
I'm trying to write a .NET client for a SlideShare analytics
application and one of the fields I'm trying to capture is the date a
user's presentation was created.
Currently the DateTime format for the "Created" field in a
Get_Slideshow response (see the documentation here:
http://www.slideshare.net/developers/documentation) looks something
like this:
<Created>Wed Feb 10 20:13:54 -0600 2010</Created>
(Day of week name, Month name, Weekday, Hours:Minutes:Seconds, GMT
offset?, Year)
I'm having a difficult time finding a non-awkward way to parse this
response format into a standard day/month/year or month/day/year
format. .NET's own DateTime.Parse() and DateTime.ParseExact() native
methods both fail on this format, which is amazing considering how
robust and flexible both of those parsing methods are.
While I think ultimately this response format reflects some really
poor decision making on the part of SlideShare's API development team
(seriously, why should parsing a date be this complicated?), I was
wondering if any of the other developmers on these boards have
developed a robust workaround method for parsing it. Developing a
giant switch statement for mapping SlideShare's three-letter month
codes to a numeric month number, among other gruesome workarounds,
leaves me wanting.
--
You received this message because you are subscribed to the Google Groups "SlideShare Developers" group.
To post to this group, send email to
slideshare...@googlegroups.com.
To unsubscribe from this group, send email to
slideshare-devel...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/slideshare-developers?hl=en.