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

public class Main {
	public static void main(String[] args) {
		Date now = new Date();

		SimpleDateFormat sdf = new SimpleDateFormat("D");

		// For the JVM's timezone
		sdf.setTimeZone(TimeZone.getDefault());
		System.out.println(sdf.format(now));

		// For the timezone, UTC
		sdf.setTimeZone(TimeZone.getTimeZone("UTC"));
		System.out.println(sdf.format(now));

		// For the timezone, Australia/Brisbane
		sdf.setTimeZone(TimeZone.getTimeZone("Australia/Brisbane"));
		System.out.println(sdf.format(now));

		System.out.println();
	}
}