Android Question Translate HttpResponse

AlpVir

Well-Known Member
Licensed User
Longtime User
A web server returns the date of a file as a string of which carry two examples below:
[Mon, 09 Jan 2017 14:58:02 GMT]
[Fri, 28 Oct 2016 17:29:09 GMT]
Is there any function that turns this string in ticks?
Tanks
 

DonManfred

Expert
Licensed User
Longtime User
You need to parse the date by yourself i guess.

Maybe you can use datetime.dateformat to setup the correct placeholder to parse such a date
 
Upvote 0
Top