Android Question Date parse

stanks

Active Member
Licensed User
Longtime User
hi

i have date/time as

B4X:
Mon, 13 Oct 2014 07:54:00 GMT

this format is almost like

B4X:
"EEE, d MMM yyyy HH:mm:ss z"

almost because with above format i get CEST and not GMT

any1 have idea how to convert/parse this

B4X:
Mon, 13 Oct 2014 07:54:00 GMT
to smth like
B4X:
13.10.2014
that is format "dd.MM.yyyy"

thanks
 

thedesolatesoul

Expert
Licensed User
Longtime User
What exactly are you doing (in code)?
I would expect something like:
B4X:
DateTime.DateFormat = "EEE, d MMM yyyy HH:mm:ss z"
Dim myDate as Long = DateTime.DateParse("Mon, 13 Oct 201407:54:00 GMT")
DateTime.DateFormat = "dd.MM.yyyy"
Log(DateTime.Date(myDate))
 
Upvote 0
Top