Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7128173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T11:06:39+00:00 2026-05-28T11:06:39+00:00

Youtube’s API returns a JSON object with an array of videos. Each video object

  • 0

Youtube’s API returns a JSON object with an array of videos. Each video object has a published date formatted like “2012-01-11T20:49:59.415Z”. If I initialize a Javascript Date object using the code below, the object returns “Invalid Date”.

var dt = new Date( "2012-01-11T20:49:59.415Z" );

I’m using this on iOS/mobile Safari, if that makes a difference.

Any suggestions or ideas on how to create a valid object?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T11:06:40+00:00Added an answer on May 28, 2026 at 11:06 am

    I ended up finding a solution at http://zetafleet.com/blog/javascript-dateparse-for-iso-8601. It looks like the date is in a format called ‘ISO 8601.’ On earlier browsers (Safari 4, Chrome 4, IE 6-8), ISO 8601 is not supported, so Date.parse doesn’t work. The code referenced from the linked blog post extends the current Date class to support ISO 8601.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

YouTube has URL's like these: http://www.youtube.com/watch?v=zKqeCtjFGFc When I create a PHP page mine would
It looks like the YouTube API does not have a way to stop a
I'm using the YouTube API in my flex app to play videos and it
Like youtube, i have a usertable, a table with objects (videos) and a table
I have a youtube video embed code that looks like this: <iframe width=560 height=315
In video gallerys YouTube shows images of the videos instead of the flash player.
According to the Google Youtube Java API if I want to delete a video,
i have a youtube video and a like button on top of it. The
YouTube returns the Updated date and Submitted on date as follows: 2010-08-22T04:46:18.000Z Is there
The Youtube Player API has a bunch of functionality that I'm interested in, such

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.