TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Amit Samnani
NA
120
2.6k
How to Load the time from Ajax object?
Jun 8 2015 2:36 AM
Dear friends,
i have ajax object into that, i got one list from that list i am trying to get date and time value i am able to load date value but not get time value please help me for it....
my ajax code is....
$.ajax({
url: '/Dashboard/Index?DropdownCnt=' + ddlCnt,
type: "GET",
dataType: "json",
async: true,
contentType: "application/json; charset=utf-8",
success: function (result) {
$.each(result.lstNotification, function (j, dval) {
var date = new Date(parseInt(dval.Date.substr(6)));
var curr_date = date.getDate();
if (curr_date < 10) {
curr_date = '0' + curr_date;
}
var curr_month = date.getMonth() + 1; //Months are zero based
if (curr_month < 10) {
curr_month = '0' + curr_month;
}
var curr_year = date.getFullYear().toString().substring(2, 4);
var curr_tm = date.getHours;
Innerhtml += "<tr>";
Innerhtml += "<td>";
Innerhtml += "<div>";
Innerhtml += "<p class=\"blueText datTextTwo\">" +curr_time + '/' + curr_date + '/' + curr_month + '/' + curr_year + "</p>";
Innerhtml += "<span class=\"dotBrdTwo\"></span>";
Innerhtml += "</div>";
Innerhtml += "</td>";
Innerhtml += "<td class=\"fontflm\">";
Innerhtml += "<div class=\"notdescp\">";
Innerhtml += "<span>" + dval.Note + "";
Innerhtml += "</span>";
Innerhtml += "</div>";
Innerhtml += "</td>";
Innerhtml += "</tr>";
})
$('#notify tbody').append(Innerhtml);
Reply
Answers (
0
)
fancybox on radio button
Search engine prjt in mvc4 using multiple table entity model