I want to get the date after x days from current. I am using java,util.Date in the code.
fun dateAfterXdays(x: Int) : Date{
var date = Date()
date.date = date.date + x
return date
}
Is there a better way to do it
I want to get the date after x days from current. I am using java,util.Date in the code.
fun dateAfterXdays(x: Int) : Date{
var date = Date()
date.date = date.date + x
return date
}
Is there a better way to do it