Android Question DateUtils help

Alberto Michelis

Well-Known Member
Licensed User
Before someone tells, yes I search the forum and did not realized how to do ii.

I need to substract 60 day to now, how to do it?

NewDate = Now - 60

Thanks
 

Alberto Michelis

Well-Known Member
Licensed User
THis neither
B4X:
            DateTime.DateFormat="yyyy-mm-dd"
            Dim hoy As Long = DateTime.Now
            Dim p As Period
            p.Days = -60
            DateTime.Date(DateUtils.AddPeriod(hoy,p))
Results in '2015-10-18'
 
Top