Sub Globals
'These global variables will be redeclared each time the activity is created.
Dim DisplayDatum As String
Dim DiplayDateL As Long
Private edtDate As EditText
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Layout")
DateTime.DateFormat="dd-MM-yyyy"
DiplayDateL = DateTime.Now
DisplayDatum=DateTime.Date(DateTime.Now)
edtDate.Text=DisplayDatum
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub btnDDmin_Click
DiplayDateL = DateTime.Add(DiplayDateL,0,0,-1)
edtDate.Text=DateTime.Date(DiplayDateL)
End Sub
Sub btnDDplus_Click
DiplayDateL = DateTime.Add(DiplayDateL,0,0,1)
edtDate.Text=DateTime.Date(DiplayDateL)
End Sub