Linked Questions
16 questions linked to/from Converting json results to a date
2167 votes
42 answers
816k views
How do I format a Microsoft JSON date?
I'm taking my first crack at Ajax with jQuery. I'm getting my data onto my page, but I'm having some trouble with the JSON data that is returned for Date data types. Basically, I'm getting a string ...
0 votes
5 answers
21k views
How to convert json date format to normal date format. Ex:'/Date(1388412591038)/' to '12-30-2013'?
This is my json generated at client side. I am posting this json to the server. But the StartDate and EndDate are not being converted. Please help. [ { "GoalTitle": "Competancy Goal", ...
2 votes
2 answers
7k views
In JqGrid Display Date Time../Date(1352658600000)/
/Date(1352658600000)/ When Display the date Date is not Display in Proper Format. How to convert in to proper Format(dd/mm/yyyy)?
2 votes
3 answers
7k views
jqGrid Date column sort does not work with sorttype:'date'
I am using jqGrid in MVC 4 to display data. I am having a grids with date/ datetime column in it. I am returning C# DateTime variable data for grid date column; which is displaying fine with the ...
1 vote
2 answers
6k views
Timestamp to UI5
currently, I'm trying to add some date parameter to my add from my backend I get /Date(1525521600000+0000)/ I tried some methods like <Text text="{path: 'ValueDate', type: '...
9 votes
1 answer
379 views
Why +str is a better than str*1 in JS to convert string to number?
Say I have a string, which value is already a number, e.g. var str = "1234" Now I want to convert it to number. I have seen two tricks on the internet so far, Use the unary +: var num = +str Use the ...
0 votes
2 answers
1k views
updating a single value in localstorage
So i've got this piece of code to update the date and time a person leaves in localstorage $scope.visitorout = function(){ var dateout1 = new Date(); var signout = JSON.parse(localStorage["...
0 votes
1 answer
2k views
cant extract date '/Date(1617667200000+0000)/'
I am using cakephp4 and a Xero API. I can't find the code to convert a date returned as '/Date(1617667200000+0000)/' from a Xero API. It is a timestamp with the first 10 digits eg the $rr=gmdate("...
0 votes
1 answer
2k views
JqGrid datetime column returns string value like /Date(1380565800000) instead of DateTime object
I am having jqGrid with following ColModel definition colModel: [ . . . { name: 'ReadingTransferTime', index: 'ReadingTransferTime', width: 78, formatter: '...
0 votes
2 answers
621 views
Parsing from /Date(1487185200000)/ to date format
I want to convert this type of object to date format as (Sat 10/4/2016 5:03 PM) how can I do that of input type /Date(1487185200000)/ using angularJs May json is something like this [{ "Post_Id": 1,...
0 votes
1 answer
333 views
javascript date from controller [duplicate]
I am using json to get date from asp.net controller witch get date from ms sql database. In JavaScript i get object with strange date type Object BloodTestID:23 Date:"/Date(1451599200000)/" Name:"Hb"...
0 votes
0 answers
129 views
Cannot read attribute of type Datetime in View
I am trying to display a json array which I got from consuming a web service that returns a list of resourceRequests that contain an attribute 'dateDepot' of type DateTime but it doesn't work unlike ...
0 votes
0 answers
98 views
Time Stamped Data
Our edge device has an inbuilt data logging function which logs data at regular intervals. If for some reason a connection to the cloud is lost for a period of time, then the next time it connects it ...
1 vote
1 answer
72 views
How To Read DateTime From DataBase Using Java Script in ASp.net
im trying to set endtime(expired/CountDown) <p id="demo"></p> <script> // Set the date we're counting down to var countDownDate = new Date("Jan 5, 2018 15:37:25")....
0 votes
0 answers
46 views
how to convert datetime formate into date in asp.net mvc angularjs [duplicate]
i add data into database like this or.Date = DateTime.Now; or.Inches = item.Inches; or.note = not; or.paid = pad; or.ProductDes = item.ProductDes; ...