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

  • SEARCH
  • Home
  • 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 8787811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:59:05+00:00 2026-06-13T21:59:05+00:00

i have in jquery: var start = ‘2012-11-10 13:10:13’; Why this not working: var

  • 0

i have in jquery:

var start = '2012-11-10 13:10:13';

Why this not working:

var date = new Date(start);

? How can i make it without external plugins?

  • 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-06-13T21:59:06+00:00Added an answer on June 13, 2026 at 9:59 pm

    This is a bit more correct:

    var correctStart = '2012-11-10T13:10:13';
    var date = new Date(correctStart);
    

    Quoting the Date.parse (MDN) doc:

    Alternatively, the date/time string may be in ISO 8601 format.
    Starting with JavaScript 1.8.5 / Firefox 4, a subset of ISO 8601 is
    supported. For example, “2011-10-10” (just date) or
    “2011-10-10T14:48:00 (date and time) can be passed and parsed.

    Still, this format is NOT supported by IE8 (as mentioned here). Therefore I suggest at least considering possibility of using external libraries for processing dates – in particular, Moment.js.

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

Sidebar

Related Questions

I have 2 jquery vars: var contVar = $('#container'); var linkNameVar = $(this).attr('id'); //for
I have this code: jQuery: var mouseDown=false; var lastPositionX; var lastPositionY; var newX; var
I have this jQuery script var dataString = class_id=+class_id; $.ajax({ type: POST, url: page.php,
I have declared this variable in jquery var enabled = false; I want to
Hi I have this code to parse JSON on JQUERY var json_text2 = $.parseJSON('{data:[[1340650436,2.00000],[1340736844,4.00000]],label:Waist
I have this jQuery script that works fine: $(select).change(function () { var finalPrice =
I have my jQuery code like this $(document).ready(function () { var lastsel; $('#jqgProducts').jqGrid({ //url
I have the following jquery code: $(document).ready(function() { $(#build_table, a.coursename, .Start Date, .Book Title,
I have the following jQuery code: var id = $(this).data('id'); if ($('#container').is(':visible')) { $('#container').slideToggle('fast',
I have jquery drag and drop working so I can move one row in

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.