mardi 30 août 2016

DateUtils.PeriodBetween help please for a countdown timer?

Hi

I am trying to count down to a particular future date. For example, today is August 30, 2016 at 17:00, my future date is October 1, 2016 at 15:00

I want to do a timer with a countdown every second of how many days, hours, minutes and seconds from today i.e. August 30, 29016 until October 1, 2016

This is what I have done currently.

Code:
  Dim speriod as period
speriod = DateUtils.PeriodBetween(sdatetimeEnd,
DateTime.now)
log(speriod)
and the output is...

Code:
  [Days=20,...  
DateUtils.PeriodBetween help please for a countdown timer?

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

Aucun commentaire:

Enregistrer un commentaire