dimanche 26 juin 2016

Calculating days between dates

I am using the following code in B4i: (using DateUtils)

Dim diff As Period
DateTime.DateFormat="dd.MM.yyyy HH:mm:ss"
diff = DateUtils.PeriodBetweenInDays(DateTime.Now, DateTime.DateParse("27.07.2016 23:59:59"))
Label1.Text = diff.Days

Why does this code not work in B4A?

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/28W6PfI
via IFTTT

Aucun commentaire:

Enregistrer un commentaire