Android Question DateUtils.TicksToString

Declan

Well-Known Member
Licensed User
Longtime User
I have the following code:
Code: Copy
            DateTime.DateFormat="dd-MM-yyyy HH:mm:ss"
            Dim MyTime As String
          Dim MyTime As String
            MyTime = DateUtils.TicksToString(DateTime.Now)
The result is:
Code: Copy
25-07-2017 16:15:35 16:15:35
I cannot understand why I get the additional " 16:15:35"
 
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
Back
Top