import java.text.*; import java.util.*; public class Ajaformaat2{ public static void main(String argumendid[]){ SimpleDateFormat sdf=new SimpleDateFormat("dd.MM.yyyy 'kell' HH:mm:ss"); sdf.setTimeZone(new SimpleTimeZone(2*60*60*1000, "EET")); System.out.println(sdf.format(new Date())); } }