Ayende @ Rahien

Hi!
My name is Oren Eini
Founder of Hibernating Rhinos LTD and RavenDB.
You can reach me by phone or email:

ayende@ayende.com

+972 52-548-6969

, @ Q c

Posts: 5,969 | Comments: 44,492

filter by tags archive

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:

/Date(1224043200000+0300)/

I thought not :-)

We have recently moved toward this format instead:

2011-04-04T11:28:46.0404749+03:00

Which it both machine and human readable.

This make figuring out what something is so much easier.


Comments

Erik Juhlin

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

NC
NC

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

I believe that is what he's using.

googles

james.newtonking.com/.../...mes-with-json-net.aspx

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

Comment preview

Comments have been closed on this topic.

FUTURE POSTS

No future posts left, oh my!

RECENT SERIES

  1. Production postmortem (5):
    29 Jul 2015 - The evil licensing code
  2. Career planning (6):
    24 Jul 2015 - The immortal choices aren't
  3. API Design (7):
    20 Jul 2015 - We’ll let the users sort it out
  4. What is new in RavenDB 3.5 (3):
    15 Jul 2015 - Exploring data in the dark
  5. The RavenDB Comic Strip (3):
    28 May 2015 - Part III – High availability & sleeping soundly
View all series

RECENT COMMENTS

Syndication

Main feed Feed Stats
Comments feed   Comments Feed Stats