Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 890923108b24d878d76e72ee49e61c289aa48a3e 1 parent 0aab10c
Karel Minarik karmi authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  README.md
1  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
Please sign in to comment.
Something went wrong with that request. Please try again.