Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

The JSON value could not be converted to System.DateTime. Path: $.time | LineNumber: 0 | Byte Position InLine: 128. code example

Example: The JSON value could not be converted to System.DateTime

your date value in your JSON isn't correct. should be

2019-01-06T17:16:40
Most parsers use ISO 8601

You can use

new Date(stringValue).toISOString()

Then your post will work using the correct date format :)

Tags:

Javascript Example

Related

sql query to create a simple table code example in git how to pull down a remote branch code example git discard published commit code example js get time with respect to a timezone code example passing props function in react code example php sort et natsort code example install rails mac os code example extract value from kb mb gb tb javascript code example php array indices order code example Randomise Array code example sql temp table ## code example bootstrap 4 nav navbar-nav navbar-right code example

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy