Skip to content

$birthday

Returns a sensible birthday for a human.

Options

  • type (optional) Demographic. One of (CHILD, TEEN, ADULT, SENIOR, DEFAULT).

Example

{
    "birthday": { "$birthday": "ADULT" }
}
{
    "birthday": ISODate("1985-08-15T22:21:35.343Z")
}