import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;

public class Main {
	public static void main(String[] args) throws ParseException {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXXX", Locale.ENGLISH);
		Date date = sdf.parse("2013-09-29T18:46:19Z");

		// In JVM's timezone and default format as returned by Date#toString
		System.out.println(date);

		// In UTC and custom format
		sdf.setTimeZone(TimeZone.getTimeZone("Etc/UTC"));
		String strDate = sdf.format(date);
		System.out.println(strDate);

		// In India and custom format
		sdf.setTimeZone(TimeZone.getTimeZone("Asia/Kolkata"));
		strDate = sdf.format(date);
		System.out.println(strDate);
	}
}