{"action":"created","issue":{"url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/3020","repository_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate","labels_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/3020/labels{/name}","comments_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/3020/comments","events_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/3020/events","html_url":"https://github.com/aspnetboilerplate/aspnetboilerplate/issues/3020","id":293886074,"number":3020,"title":"How Serialize DTO with Date as Object?","user":{"login":"vitorlacerda","id":3642107,"avatar_url":"https://avatars0.githubusercontent.com/u/3642107?v=4","gravatar_id":"","url":"https://api.github.com/users/vitorlacerda","html_url":"https://github.com/vitorlacerda","followers_url":"https://api.github.com/users/vitorlacerda/followers","following_url":"https://api.github.com/users/vitorlacerda/following{/other_user}","gists_url":"https://api.github.com/users/vitorlacerda/gists{/gist_id}","starred_url":"https://api.github.com/users/vitorlacerda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitorlacerda/subscriptions","organizations_url":"https://api.github.com/users/vitorlacerda/orgs","repos_url":"https://api.github.com/users/vitorlacerda/repos","events_url":"https://api.github.com/users/vitorlacerda/events{/privacy}","received_events_url":"https://api.github.com/users/vitorlacerda/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-02T13:20:34Z","updated_at":"2018-02-04T12:44:00Z","closed_at":null,"author_association":"NONE","body":"How can i make Abp serialize dto using date as object and not as string?\r\n\r\nJson.NET can do this\r\n\r\n```c#\r\nJsonSerializerSettings microsoftDateFormatSettings = new JsonSerializerSettings\r\n{\r\n        DateFormatHandling = DateFormatHandling.MicrosoftDateFormat\r\n};\r\n\r\n // {\"Details\":\"Application started.\",\"LogDate\":\"\\/Date(1234656000000)\\/\"}\r\nstring microsoftJson = JsonConvert.SerializeObject(entry, microsoftDateFormatSettings);\r\n\r\n// {\"Details\":\"Application started.\",\"LogDate\":new Date(1234656000000)}\r\nstring javascriptJson = JsonConvert.SerializeObject(entry, new JavaScriptDateTimeConverter());\r\n```"},"comment":{"url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/comments/362904040","html_url":"https://github.com/aspnetboilerplate/aspnetboilerplate/issues/3020#issuecomment-362904040","issue_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/3020","id":362904040,"user":{"login":"hikalkan","id":1210527,"avatar_url":"https://avatars1.githubusercontent.com/u/1210527?v=4","gravatar_id":"","url":"https://api.github.com/users/hikalkan","html_url":"https://github.com/hikalkan","followers_url":"https://api.github.com/users/hikalkan/followers","following_url":"https://api.github.com/users/hikalkan/following{/other_user}","gists_url":"https://api.github.com/users/hikalkan/gists{/gist_id}","starred_url":"https://api.github.com/users/hikalkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hikalkan/subscriptions","organizations_url":"https://api.github.com/users/hikalkan/orgs","repos_url":"https://api.github.com/users/hikalkan/repos","events_url":"https://api.github.com/users/hikalkan/events{/privacy}","received_events_url":"https://api.github.com/users/hikalkan/received_events","type":"User","site_admin":false},"created_at":"2018-02-04T12:44:00Z","updated_at":"2018-02-04T12:44:00Z","author_association":"OWNER","body":"Have you tried something like that:\r\n\r\n````C#\r\n            services.Configure<MvcJsonOptions>(jsonOptions =>\r\n            {\r\n                jsonOptions.SerializerSettings.DateFormatHandling = ...\r\n            });\r\n````"}}
{"actor":{"display_login":"hikalkan"}}