Home > Back-end >  Custom System.Text JsonConverter<DateTimeOffset> not getting invoked
Custom System.Text JsonConverter<DateTimeOffset> not getting invoked

Time:11-28

I am creating a custom JsonConverterto parse datetimeoffset, to fix utc issue with offset. I am following enter image description here

Besides, you can also add [FromBody] to specify the source because it binds the form data by default if you use asp.net core MVC project:

[HttpPost]
public IActionResult Index([FromBody]Travel model)
{
    //do your stuff...
}
  • Related