Android Question Countdown hour, minuts and seconds result DateUtils.PeriodBetween

angel

Member
Licensed User
Longtime User
Hello

I have a Datetime start and Datetime stop, with DateUtils.PeriodBetween calculate the difference between the two Datetime and read the hours, minutes and seconds.
As I can make the difference in hours minutes and seconds are going to start a timer discounting?
Time initial = 2:0:0
Time countdown = 1:59:59 .......... ?

thanks
 

Attachments

  • aaa.zip
    332.6 KB · Views: 374

angel

Member
Licensed User
Longtime User
thanks solved

B4X:
periode1 = DateUtils.PeriodBetween(DateTime.Now, DatetimeEnd)
    Label6.Text = periode1.Hours & ":" & periode1.Minutes & ":" & periode1.Seconds
 
Upvote 0
Top