B4J Question day forward or backwards

Colin Evans

Active Member
Licensed User
Longtime User
Hi, I'm sure this is an easy one if you know how

I'm using Datepicker in the designer, and I want to have two buttons that allow me to go forward or backwards one day, i.e next and previous

But I can't find a way to navigate I also have a today button to return me back to today which works but I can't figure the next previous

B4X:
Private Sub btnToday_Action
    Log("btnToday")
    DateTime.DateFormat="dd-MM-yyyy"
    Dim Today As String = DateTime.Date(DateTime.Now)
    Log("Today " & Today)    
    DatePicker1.DateFormat = "dd-MM-yyyy"
    DatePicker1.DateTicks = TodayTick
End Sub
[/code}
 
Top