YouTube API - Are published data incorrect?

If you open this video, you can see the published data: 09 / apr / 2008

But if I get the processed video .NET API and I do:

video.Updated.Year.ToString() 

prints 2011. Why?

If you see XML, you can see

 <published>2008-04-09T18:32:39.000Z</published> <updated>2011-10-30T16:14:02.000Z</updated> 

so what method do I need to call for the Video object to access this field?

EDIT

I process the date using video.Updated.Year.ToString() in the feed after calling http://gdata.youtube.com/feeds/api/users/zimbarvideo/uploads/?start-index=260&max-results=50&orderby=published

+4
source share
1 answer

I found a solution: just use video.YouTubeEntry.Published.Year .

Thank you anyway!

+1
source

Source: https://habr.com/ru/post/1384678/


All Articles