Ayende @ Rahien

It's a girl

Humane dates in RavenDB

Originally posted at 4/4/2011

One of the advantages of RavenDB is that the documents format is highly human readable. Except for one thing. Can you tell me what date is represented by this value:


I thought not :-)

We have recently moved toward this format instead:


Which it both machine and human readable.

This make figuring out what something is so much easier.


Erik Juhlin
04/16/2011 12:21 PM by
Erik Juhlin

Nice! How do you configure this when using JSON.NET?

04/16/2011 12:40 PM by

@Erik - Theres a parameter to pass in when you serialize. IsoDateTimeConverter

I believe that is what he's using.



string isoJson = JsonConvert.SerializeObject(entry, new IsoDateTimeConverter());

Comments have been closed on this topic.