having probs with dateutils addperiod.
Code
this the log details
** Activity (main) Resume **
20130623 03:42:06 first part
06/23/2013 04:06:59 second part
just noticed that the first part is the date but not formated like second part
the first part of the if statement (Start9 = true) return long date but correct time.The second part returns correct date and time.
Any help really appreciated as need this to work to try and finish of my project.
Code
B4X:
Sub restBefore
Dim RestTime As Long
RestTime = DateTime.now
If Start9 = True Then
p.Hours = 9:p.Minutes =5
Dim newdate As Long = DateUtils.AddPeriod(RestTime,p)
Log(DateUtils.TicksToString(newdate))
Else
p.Hours = 4:p.Minutes =30
Dim newdate As Long = DateUtils.AddPeriod(RestTime,p)
Log(DateUtils.TicksToString(newdate))
End If
End Sub
** Activity (main) Resume **
20130623 03:42:06 first part
06/23/2013 04:06:59 second part
just noticed that the first part is the date but not formated like second part
the first part of the if statement (Start9 = true) return long date but correct time.The second part returns correct date and time.
Any help really appreciated as need this to work to try and finish of my project.
Last edited: