P prajinpraveen Active Member Licensed User Longtime User Jun 28, 2016 #1 Hello, I have a string that i would like to parse. The datetime string has TimeZone and is in custom format eg: Tue Jun 28 09:15:28 CAT 2016 The equivalent format is DateTime.DateFormat = "EE MMM dd hh:mm:ss z yyyy" how do i get the ticks for this custom date format. thank you
Hello, I have a string that i would like to parse. The datetime string has TimeZone and is in custom format eg: Tue Jun 28 09:15:28 CAT 2016 The equivalent format is DateTime.DateFormat = "EE MMM dd hh:mm:ss z yyyy" how do i get the ticks for this custom date format. thank you
Daestrum Expert Licensed User Longtime User Jun 28, 2016 #2 Possibly B4X: ... Dim da As String da = "Tue Jun 28 09:15:28 CAT 2016" DateTime.DateFormat = "EE MMM dd hh:mm:ss z yyyy" Dim das As Long = DateTime.DateParse(da) Log (das) ... Upvote 0
Possibly B4X: ... Dim da As String da = "Tue Jun 28 09:15:28 CAT 2016" DateTime.DateFormat = "EE MMM dd hh:mm:ss z yyyy" Dim das As Long = DateTime.DateParse(da) Log (das) ...
P prajinpraveen Active Member Licensed User Longtime User Jun 29, 2016 #3 Thank you. I thought DateParse takes two parameters, Date and Time separately. Upvote 0