class Faker::Date
def forward(days: 365)
-
(Date)
-
Parameters:
-
days
(Integer
) -- The maximum number of days to go into the future.
def forward(days: 365) from = ::Date.today + 1 to = ::Date.today + days between(from: from, to: to).to_date end