Click here to Skip to main content
16,005,120 members
Articles / Database Development / MongoDB

MongoDB C#: How to Deserialize a JSON Containing a DateTime into a Proper BsonDocument DateTime Value

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
23 Nov 2018CPOL3 min read 31.1K   2  
What if your Json contains a datetime value like "2018-11-23T20:56:05.3117673Z" and you need it to be in a BsonDocument as a proper BsonDateTime value?

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect Pentland Firth Software GmbH
Germany Germany
I love coding in .Net C# and do my best to get a problem solved the way it should be solved. Working as a Software Architect I was lucky to make my hobby a profession Smile | :)

Comments and Discussions