following Code:
dim date1 as string
dim date2 as string
tim tks as long
dim dif as long
date1 = EditText1.Text
date2 = "02/01/2012" ' format is dd/MM/yyyy
tks = DateTime.DateParse(date1) - DateTime.DateParse(Date2)
dif= tks / DateTime.TicksPerDay
Why is for date1 = "25/03/2012" and date1 = "26/03/2012" the result dif = 83?
In the emulator it shows the right result...but on the mobilphone its the wrong (tested it on three different phones)
dim date1 as string
dim date2 as string
tim tks as long
dim dif as long
date1 = EditText1.Text
date2 = "02/01/2012" ' format is dd/MM/yyyy
tks = DateTime.DateParse(date1) - DateTime.DateParse(Date2)
dif= tks / DateTime.TicksPerDay
Why is for date1 = "25/03/2012" and date1 = "26/03/2012" the result dif = 83?
In the emulator it shows the right result...but on the mobilphone its the wrong (tested it on three different phones)