B4J Question B4J DateTime parse with Timezone

prajinpraveen

Active Member
Licensed User
Longtime User
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
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
Top