Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
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 b4e054e0eff3b06d0ac288a3e7ca49e274508a21 1 parent 0aab10c
@karmi karmi authored committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  README.md
View
1  README.md
@@ -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.