D dgoss Member Licensed User Longtime User Nov 7, 2015 #1 i'm doing this Code: Copy 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
i'm doing this Code: Copy 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
LucaMs Expert Licensed User Longtime User Nov 7, 2015 #2 It is correct. Add the rebuttal: Code: Copy Log(" date-time " & DateTime.Date(l) & " " & DateTime.Time(l)) [If necessary, you may keep (save) the original formatting and restore it] Last edited: Nov 7, 2015 Upvote 0
It is correct. Add the rebuttal: Code: Copy Log(" date-time " & DateTime.Date(l) & " " & DateTime.Time(l)) [If necessary, you may keep (save) the original formatting and restore it]
udg Expert Licensed User Longtime User Nov 7, 2015 #3 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
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
D dgoss Member Licensed User Longtime User Nov 7, 2015 #4 LucaMs said: It is correct. Add the rebuttal: Code: Copy Log(" date-time " & DateTime.Date(l)) Log(" date-time " & " " & DateTime.Time(l)) [If necessary, you may keep (save) the original formatting and restore it] Click to expand... LucaMs Thx for the reply Sometimes can't see the wood for the trees got it now thread finished Upvote 0
LucaMs said: It is correct. Add the rebuttal: Code: Copy Log(" date-time " & DateTime.Date(l)) Log(" date-time " & " " & DateTime.Time(l)) [If necessary, you may keep (save) the original formatting and restore it] Click to expand... LucaMs Thx for the reply Sometimes can't see the wood for the trees got it now thread finished
D dgoss Member Licensed User Longtime User Nov 7, 2015 #5 udg said: 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 Click to expand... 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 Upvote 0
udg said: 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 Click to expand... 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