Skip to Content
๐ŸŽฒ Welcome to RandBox - Powerful JavaScript Random Data Generation Library! Learn More

month

// usage randBox.month()

Generate a random month.

randBox.month(); => 'January'

By default, returns just the full name.

Optionally specify raw to get the whole month object consisting of name, short_name, and numeric.

randBox.month({raw: true}); => {name: 'October', short_name: 'Oct', numeric: '10'}
Last updated on: