Permalink
Browse files

Added another example of valid format for date string in `date` field…

… types

See commit `7f4e703cb02a309221981943da912803be2ef24e` which introduced the
freeform "January 6, 1972 16:05:00" format.

The "1972/1/6 16:05:00" format is presumably more compatible
with various platforms and easier to return from `strftime()`.
  • Loading branch information...
1 parent 0aab10c commit 890923108b24d878d76e72ee49e61c289aa48a3e @karmi karmi committed with karmi Oct 3, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 README.md
View
@@ -208,6 +208,7 @@ doc.add("value");
doc.add(35, {"type":"int"});
// Add a date field.
+doc.add(new Date("1972/1/6 16:05:00"), {"type":"date"});
doc.add(new Date("January 6, 1972 16:05:00"), {"type":"date"});
// Add a date field (object must be a Date object

0 comments on commit 8909231

Please sign in to comment.