I am new to Android and I am currently facing an issue to get current time given the timezone.
I get timezone in the format \"GMT-7\" i.e. string. and I have the sys
Try this:
SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy"); df.setTimeZone(TimeZone.getTimeZone("YOUR_TIMEZONE")); String strDate = df.format(date);
YOUR_TIMEZONE may be something like: GMT, UTC, GMT-5, etc.