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

exp

// usage randBox.exp() randBox.exp({raw: true})

Generate a random credit card expiration.

randBox.exp(); => '10/2020'

Optionally specify that a raw object be returned rather than a string

randBox.exp({raw: true}); => {month: '11', year: '2017'}
Last updated on: