A atiaust Active Member Licensed User Longtime User Dec 15, 2016 #1 Hi All, I have a text date in the format "20/Jan/2016" and a time "10:20 AM" I want to convert it to ticks. I have been trying to find some way of doing it but no luck yet. Any ideas. Thanks
Hi All, I have a text date in the format "20/Jan/2016" and a time "10:20 AM" I want to convert it to ticks. I have been trying to find some way of doing it but no luck yet. Any ideas. Thanks
Erel B4X founder Staff member Licensed User Longtime User Dec 15, 2016 #2 B4X: DateTime.DateFormat = "dd/MMM/yyyy" DateTime.TimeFormat = "hh:mm a" Dim t As Long = DateTime.DateTimeParse("20/Jan/2016", "10:20 AM") Log($"$DateTime{t}"$) Upvote 0
B4X: DateTime.DateFormat = "dd/MMM/yyyy" DateTime.TimeFormat = "hh:mm a" Dim t As Long = DateTime.DateTimeParse("20/Jan/2016", "10:20 AM") Log($"$DateTime{t}"$)
A atiaust Active Member Licensed User Longtime User Dec 15, 2016 #3 Thanks Erel, Will a PM time convert to ticks with the same DateTime. DateFormat as well? Note: I found the answer to the above question and it does... Last edited: Dec 15, 2016 Upvote 0
Thanks Erel, Will a PM time convert to ticks with the same DateTime. DateFormat as well? Note: I found the answer to the above question and it does...