Linked Questions

-3 votes
1 answer
2k views

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!!!
Mr Vy's user avatar
  • 15
-1 votes
1 answer
583 views

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....
Eva's user avatar
  • 109
27 votes
11 answers
22k views

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 ...
Kalpesh's user avatar
  • 5,695
41 votes
1 answer
61k views

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": "...
vakas's user avatar
  • 1,817
8 votes
4 answers
25k views

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(...
user1188755's user avatar
1 vote
1 answer
7k views

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?
Alexander Shlenchack's user avatar
1 vote
3 answers
10k views

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)?
petko_stankoski's user avatar
3 votes
4 answers
3k views

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 ...
nickgru's user avatar
  • 51
1 vote
2 answers
4k views

I'm using Json.NET/newtonsoft and I have the following C# class: public class EntityDefinition { [DataMember] public string CreatedBy { get; set; } [DataMember] [JsonProperty(...
Dor Cohen's user avatar
  • 17.1k
2 votes
2 answers
1k views

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 ...
sdtechguy's user avatar
  • 113
1 vote
2 answers
955 views

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. ...
Omid Shariati's user avatar
0 votes
2 answers
571 views

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: ...
pasluc74669's user avatar
  • 1,700
0 votes
1 answer
180 views

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 ...
JensB's user avatar
  • 6,932
1 vote
1 answer
166 views

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 ...
karthikeyan's user avatar