Android : Getting date from another timezone

on Sunday, October 26, 2014


How can I change the timezone, when I use this code to get the date?



Calendar c = Calendar.getInstance();
String date = org.apache.http.impl.cookie.DateUtils.formatDate(c.getTime());


This returns me the date in my timezone (GMT+00:00) but I need the CET time.


0 comments:

Post a Comment