Faker v0.8.0 Faker.Date
Functions for generating dates
Summary
Functions
Returns a random date in the past up to N days, today not included
Returns a random date between two dates
Returns a random date of birth for a person with an age specified by a number or range
Returns a random date in the future up to N days, today not included
Functions
Returns a random date in the past up to N days, today not included
Returns a random date of birth for a person with an age specified by a number or range
Examples
date_of_birth #=> ~D[1961-05-09]
date_of_birth(1) #=> ~D[2015-12-06]
date_of_birth(10..19) #=> ~D[2004-05-15]
Returns a random date in the future up to N days, today not included