Android Question (SOLVED) I don't understand this difference ...

javiers

Active Member
Licensed User
Longtime User
For the same value of ticks DateTime.now, different dates are obtained in the number of minutes: 10:40:21 and 10:04:21

Entrada en t 1585903221333
Entrada string 10:40:21
Entrada completo 03/04/2020 10:04:21




B4X:
    DateTime.DateFormat = "dd/MM/yyyy hh:MM:ss"
    timer1.Initialize("Timer1", 5000)
    timer1.Enabled = True
  
    horaEntradaT = DateTime.Now
    horaEntrada = DateTime.Time(DateTime.Now)
  
    Log("Entrada en t " & horaEntradaT)
    Log("Entrada string " & horaEntrada)
    Log("Entrada completo " & DateTime.Date(horaEntradaT))
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top