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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:38:24+00:00 2026-06-18T01:38:24+00:00

I am calling my server code to return json data $.ajax({ type: POST, url:

  • 0

I am calling my server code to return json data

$.ajax({
type: "POST",
url: "myurl",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (appdata) {

        var testdata = $.parseJSON(appdata.d);

        console.log(testdata);

        $.each(testdata, function (index, appt) {
        //console.log(appt.PRODUCTID);// works fine
        //console.log(appt.ENTRYDATE);// works fine
        // var starttime=??
    }
});

Here is the console.log(testdata) output

[Object, Object]

0: Object

  PRODUCTID : "51",
  ENTRYDATE : "2013-02-13T12:30:00",
  CATEGORYID : null

__proto__:Object

1: Object

  PRODUCTID : "52",
  ENTRYDATE : "2013-02-13T12:40:00",
  CATEGORYID : null

__proto__: Object
  length: 2
__proto__: Array[0]

How can I extract the time information from ENTRYDATE like (12:30) from the first object’s entrydate 2013-02-13T12:30:00

Edit

console.log(appt.ENTRYDATE) works fine, the issue only is how to extract time information from appt.ENTRYDATE

  • 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-18T01:38:25+00:00Added an answer on June 18, 2026 at 1:38 am

    How can I extract the time information from ENTRYDATE like (12:30)

    to this: http://jsfiddle.net/Q4vsk/

    $.each(testdata, function (index, appt) {
        var $getTime = appt.ENTRYDATE;// works fine
        var $Time = $getTime.substr($getTime.indexOf('T')+1).slice(0, -3);
        console.log($Time); // output will be: 12:30, 12:40
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am calling a server side function to return a json format string and
I'm writing an app that is calling a server to get data to show
I have a javascript file which has a function calling a server (url) to
We are currently calling web services on our application server through our web server
After calling the server and turning the data it returns into a table. I
I'm using jQuery 1.8.2 to call some backend server api's via jQuery's ajax POST.
I have noticed many code examples of calling a web service which returns json
I'm calling ajax.php with jQuery. It returns a JSON response all the time. $.ajax({
Here is my code <html xmlns=http://www.w3.org/1999/xhtml> <head runat=server> <title></title> <script type=text/javascript src=<%= ResolveUrl(Scripts/jquery-1.3.2.min.js) %>></script>
this way i am calling my server side code....my code as follows. $(function ()

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.