Android Question date time parse

dgoss

Member
Licensed User
Longtime User
i'm doing this
B4X:
DateTime.DateFormat = "dd/MM/yy"
DateTime.TimeFormat ="HH:mm:ss"
Dim d As String = "07/11/15"
Dim t As String = "09:20:00"
Dim l As Long = DateTime.DateTimeParse(d,t)
Log(" Parsed date/time = " & l)
and I get this
Parsed date/time = 1446888000000
I don't think this is right, if not what am I doing wrong
 

udg

Expert
Licensed User
Longtime User
Hi dgoss,

what does it make you think the result is wrong?
Ticks are the number of milliseconds since January 1, 1970 00:00:00 UTC. What did you expect?

udg
 
Upvote 0

dgoss

Member
Licensed User
Longtime User

LucaMs
Thx for the reply
Sometimes can't see the wood for the trees
got it now
thread finished
 
Upvote 0

dgoss

Member
Licensed User
Longtime User
Hi dgoss,

what does it make you think the result is wrong?
Ticks are the number of milliseconds since January 1, 1970 00:00:00 UTC. What did you expect?

udg
hi udg
I don't really know what I was expecting. think I was having a very blond time over this.
Just wanted confirmation what I was doing was correct and as happens it was
sometimes second pair of eyes is all it takes for you to see the wood in the trees

thx for reply
 
Reactions: udg
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…