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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T05:06:57+00:00 2026-06-02T05:06:57+00:00

I have a json date like \/Date(1334514600000)\/ in my response and when I convert

  • 0

I have a json date like \/Date(1334514600000)\/ in my response and when I convert it in javascript then I got this date Tue Apr 17 2012 11:37:10 GMT+0530 (India Standard Time),
but I need the date format like 17/04/2012 and I fail every time. Can anyone tell me how can I resolve it?

  • 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-02T05:06:59+00:00Added an answer on June 2, 2026 at 5:06 am

    I don’t think that the other posted answers are quite right, you have already accepted one as working for you so I won’t edit it.

    Here is an updated version of your accepted answer.

    var dateString = "\/Date(1334514600000)\/".substr(6);
    var currentTime = new Date(parseInt(dateString ));
    var month = currentTime.getMonth() + 1;
    var day = currentTime.getDate();
    var year = currentTime.getFullYear();
    var date = day + "/" + month + "/" + year;
    alert(date);
    

    It uses a technique from this answer to extract the epoch from the JSON date.

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

Sidebar

Related Questions

I have an json Object like this. {'01/19/2012': Array[1],'02/19/2012': Array[7],'03/19/2012': Array[6]} Now i want
I have a JSON array like this: {structChangeList : '[{structChange:{id:Level1.Second,parentId:Level1.First,date:2011-01-01}}]' or [{structChangeList:{id:Level1.Second,parentId:Level1.First,date:2011-01-01}}] and various
I have JSON like this: { something: http://something.com } and HTML like this: <a
I have JSON text that looks like this: { ok: true, totalPages: 256, arReports:
i have json data like this {GetStudentDetails: {TotalCount:5, RootResults:[ {city:West Chester,country:USA,state:PA ,student_id:100}, {city:Philly,country:USA,state:PA,student_id:101}, {city:Buffalo,country:USA,state:NY,student_id:102},
I have a SQL Server database which contains date like 2012-01-10 00:00:00.000 When I
I have a json output that looks like this.. { XXXX: { name: Dalvin
So I have this: {d:[{__type:Like,Id:345,Sender:JohnSmith,SourceId:338,DateTime:\/Date(1321057654000)\/,FromStream:true}]} And this: function LikesSuccess(result, userContext, methodName) { for (var
i m doing json parsing and i getting response for data like date:1330387200 so
I have the below Json (wf.json) { workflow:{ template:Analysis1, start:{ instance:HDA_run1, user:symtest, date:3-Mar-2012, timestamp:1330948220475

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.