〈% Date d = new Date(); SimpleDateFormat sdf = new SimpleDateFormat("d MMMM yyyy, h:mm:ss a"); TimeZone zone = TimeZone.getDefault(); sdf.setTimeZone( zone ); %〉 Current date and time in the 〈b〉〈%= zone.getID() %〉〈/b〉 time zone: 〈b〉〈%= sdf.format( d ) %〉〈/b〉