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
sravan kumar nalivela
1.7k
10
518
Date Time Conversion miss match in latest Chrome version
Jun 18 2018 11:42 PM
I am returning jsonresult from Controller,In the output time is coming like /Date(-2209152600000)/ and i am converting this format using the function which i mentioned bellow:
function ConvertDate(jsondate) {
if (jsondate != null && jsondate != "") {
var getdate = jsondate;
var convertedDate = new Date(getdate);
if (convertedDate == 'Invalid Date') {
var milli = getdate.replace(/\/Date\((-?\d+)\)\//, '$1');
convertedDate = new Date(parseInt(milli));
}
return convertedDate;
}
else {
return "";
}
}
the issue is this function is returning correct date and time in Mozilla and internet explorer but in Chrome latest update it is giving 9 minutes less the time what i am returning from the controller output
Reply
Answers (
0
)
Uncaught TypeError: Cannot read property 'maxSlideDistance'
Filters / Links