How to generate random start and end dates with particular duration in R.
For example I want to generate a start and end date (as separate variables) of 250 days between a period of 2000-01-01 and current date 2016-04-26
example result for 250 days
start=2014-03-01
end=2014-11-06
is there a inbuilt function available in R?
Edit
this is the comment I have given to jasper
I thought about that method but lets say programme generates starting date as 2016-04-23 but the end date will be 2016-12-29. I want dates between 2000-01-01 and current date 2016-04-26