Linked Questions
14 questions linked to/from Parsing JSON DateTime from Newtonsoft's JSON Serializer
-3 votes
1 answer
2k views
C# parse datetime from string \/Date(1433969291760)\/ [duplicate]
I recieved a string from url "/Date(1433969291760)/", I want to parse this string to datetime mm-dd-yyyy by C# code. help me !!! thank advance!!!
-1 votes
1 answer
583 views
Convert DateTime to date and then return only the date as string [duplicate]
I am passing "/Date(1541116800000)/" as string in my method. How to extract only date and then return it as string in if condition? public convertDateToString(string value) { if (DateTime....
27 votes
11 answers
22k views
PHP date format /Date(1365004652303-0500)/
I am calling an API from where I am getting date /Date(1365004652303-0500)/, I don't understand what format this is. How is this date format called? I was not sure what to google for such type of ...
41 votes
1 answer
61k views
how to force netwtonsoft json serializer to serialize datetime property to string?
I am using Newtonsoft's Json when i serialze a date time property i get the json response as: ..."CreatedOn":"\/Date(1317303882420+0500)\/",... i want it to be in simple string as ..."createdOn": "...
8 votes
4 answers
25k views
ASP.NET MVC Controller.Json DateTime Serialization vs NewtonSoft Json DateTime Serialization
When I return object that contains DateTime property using return Json(value); on client I receive "/Date(1336618438854)/" If i return the same value using return Json(JsonConvert.SerializeObject(...
1 vote
1 answer
7k views
Date format in ajax
What the best way represent date format in ajax, javascript and MVC 3, when server and users has different format. How synchronize it's all?
1 vote
3 answers
10k views
Deserialize JSON DateTime with time zone
I'm doing this for two hours and nothing. This is the date in JSON: "\/Date(1330355834000+0100)\/" Everything I found was without timezone or for JavaScript. How to convert it to DateTime (not Date)?
3 votes
4 answers
3k views
MVC Handling Timezones and JSON Serialization - How to Convert to Specific Timezone
I've spent quite a bit of time on stackoverflow and the internet trying to determine what has been done in my situation. I am building a centralized line of business website that could span multiple ...
1 vote
2 answers
4k views
How to return json date from C# DateTime
I'm using Json.NET/newtonsoft and I have the following C# class: public class EntityDefinition { [DataMember] public string CreatedBy { get; set; } [DataMember] [JsonProperty(...
2 votes
2 answers
1k views
Controller Returning Incorrect DateTime Format
When using the the Telerik DataSourceRequest within my controller any property with a DateTime data type is being returned as {"Data":[{"EffectiveStart":"\/Date(1393660800000)\/"} Instead of MM/dd/yy ...
1 vote
2 answers
955 views
How to render MS date time JSON format in Razor files
Microsoft ASP.NET MVC's JSON serializer converts date time values to something like "\/Date(1239018869048)\/". I have a component on the client side that uses this format to show a date-time picker. ...
0 votes
2 answers
571 views
how to correctly format date that returns from webservice c#
in my .js file, i call a c# webservice. function getDetailsFromDb(id_mac, id_instance) { $.ajax({ type: "POST", url: "webMethods/GetData.asmx/getServicesById", dataType: "json", data: ...
0 votes
1 answer
180 views
Parse "\/Date(1427565325073+0100)\/" to DateTime in .Net 2.0
There are lots of examples of how to parse a "json date" in C# using .net4+, But I havent found many which will work on .Net 2.0. Like this one Parsing JSON DateTime from Newtonsoft's JSON ...
1 vote
1 answer
166 views
Deserialize the JSON string using Newtonsoft.JSON
I want to deserialize the JSON String {\"entityType\":\"Phone\",\"countValue\":30,\"lastUpdateDate\":\"3/25/14 12:00:00 PM MST\",\"RowCnt\":30}. But I am getting JSONReaderException "Could not ...