R/date_management.R
calc_submission_due_date.Rd
Assuming that submissions are made on Mondays, this helper function finds the nearest Monday for which a submission could have been made
calc_submission_due_date(forecast_date, submission_day = "Monday")
character vector of dates in 'yyyy-mm-dd' format
day when forecasts have to be submitted. Default is Monday.
return character vecor with corresponding submission date
if (FALSE) {
calc_submission_due_date(Sys.Date() + 0:7)
}