We wanted to display birthday data from various form submissions as demographic age groups. The data from the surveys
I am using the PHP driver, but for the sake of this article I will just run JavaScript files with the mongo command line tool, as I saw on StackOverflow.
http://stackoverflow.com/questions/4060004/calculate-age-in-javascript
http://stackoverflow.com/questions/1353684/detecting-an-invalid-date-date-instance-in-javascript
http://stackoverflow.com/questions/12083926/how-to-execute-shell-some-query-in-rockmongo-or-mongovue
users/thaddeusmt/workspace/mongo-age-map-reduce.js
mongo test -u test -p test mongo-age-map-reduce.js