Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

dayofyear mongodb

{ $dayOfYear: { date: new Date("Jan 7, 2003") } }
// result: 7

{ $dayOfYear: {
    date: new Date("August 14, 2011"),
    timezone: "America/Chicago"
} }
// result: 226
Source by www.mongodb.com #
 
PREVIOUS NEXT
Tagged: #dayofyear #mongodb
ADD COMMENT
Topic
Name
8+7 =