Sub Activity_Create(FirstTime As Boolean)
Dim s As String = "2013-08-14 14:00:00"
DateTime.DateFormat = "yyyy-MM-dd"
DateTime.TimeFormat = "HH:mm:ss"
Dim i As Int = s.IndexOf(" ")
Dim ticks As Long = DateTime.DateTimeParse(s.SubString2(0, i), _
s.SubString2(i + 1, s.Length))
Dim p As Period
p.Days = 1
Dim tomorrow As Long = DateUtils.AddPeriod(ticks, p)
Log(DateUtils.TicksToString(tomorrow))
End Sub
Here is the exact answer to your question that does not involve the time and with your date format requested as shown :
B4X:
Dim Dorig As String=DateTime.DateFormat
DateTime.dateformat="d/MM/yy"
Dim intT As Long=(DateTime.DateParse("28/02/18"))
Dim p As Period
p.Days=1
Dim t As Long = DateUtils.AddPeriod(intT, p)
Dim Tomorrow As String=DateTime.Date(t)
Log("tomorrow is: " & Tomorrow) 'displays 1/03/18
DateTime.dateformat=Dorig