How to get the exact time and date of upload of YouTube videos

The YouTube page of a video displays only the date the video was published. However the YouTube API provides a way to get the exact date+time of upload, as well as publishing.

The URL to use is this:
https://gdata.youtube.com/feeds/api/videos/videoid?v=2

You've to substitute the video's ID into the videoid field above. The XML returned by this API call contains a <published>...</published>, a <updated>...</updated> and a <yt:uploaded>...</yt:uploaded> field. But don't forget that these dates are in GMT (aka. UTC), so to get the times in your local timezone, you've to convert them appropriately.

Syndicate content