Android Question DateUtils.TicksToString

Declan

Well-Known Member
Licensed User
Longtime User
I have the following code:
B4X:
            DateTime.DateFormat="dd-MM-yyyy HH:mm:ss"
            Dim MyTime As String
          Dim MyTime As String
            MyTime = DateUtils.TicksToString(DateTime.Now)
The result is:
B4X:
25-07-2017 16:15:35 16:15:35
I cannot understand why I get the additional " 16:15:35"
 

DonManfred

Expert
Licensed User
Longtime User
DATEformat should hold the format JUST FOR THE DATE!!!
DateUtils.TicksToString(DateTime.Now) uses Dateformat to format the date and Timeformat to format the time.
So the result IS EXPECTED: Dateformat (25-07-2017 16:15:35) + timeformat (16:15:35)
 
Upvote 0
Top