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 8940275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:59:54+00:00 2026-06-15T10:59:54+00:00

{date:Thu Dec 06 14:56:01 IST 2012} I am getting this string as JSON can

  • 0
   {"date":"Thu Dec 06 14:56:01 IST 2012"}

I am getting this string as JSON can I convert it to JS date 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-06-15T10:59:55+00:00Added an answer on June 15, 2026 at 10:59 am

    Edit: Unfortunately i was totally wrong, sry for that,my bad, it happened to always result in today,
    but to not screw you up, heres an solution which should work for you anyway
    If you get Different Time strings from your Server, maybe the best way is to write a Regex pattern that matches your String patterns

    • Access your date propertie from your JSON Object
    • Since instantiating a Date object with this “Thu Dec 06 14:56:01 IST 2012” String would result in an Invalid Date
    • Remove the “IST” myJson.date.replace(" IST","")
    • Instantiate the your Date object with your new String myDate = new Date("Thu Dec 06 14:56:01 2012")
    • Now theres really your Date Object

    var myJson = {"date":"Thu Dec 06 14:56:01 IST 2012"}
    var myDate = new Date(myJson.date.replace(" IST",""))
    console.log(myDate.toLocaleDateString())
    

    Heres the JSBin

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

Sidebar

Related Questions

I have a Date object Mon, 03 Dec 2012 and I have a String
I have been passed a date string that looks like this: Thu%20Mar%2011%202010%2015%3A09%3A11%20GMT%2B0000%20(BST) I want
There's a string like: HTTP/1.1 200 OK Date: Thu, 15 Dec 2011 12:23:25 GMT
I have date strings in this form Thu Aug 02 00:00:00 GMT+00:00 2012 I
date here my problem: String datetime = 2012-03-24 23:20:51; I know that that string
echo date(W,strtotime('2010-01-01')); This outputs 53. I would expect it to output 1. Can anyone
I am converting this time and date: Thu, 31 Mar 2011 02:05:59 GMT To
I want to parse the date Thu Aug 04 00:00:00 IST 2011 to dd-MM-YY
I have next date string: Thu Nov 14 0002 01:01:00 GMT+0200 (GTB Standard Time)
Can someone explain me the output http://jsfiddle.net/mark69_fnd/NhuLe/ produces? new Date('2012-07-01') == Sat Jun 30

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.