Java tutorial
import java.util.Date; public class MainClass { public static void main(String[] args) { Date now = new Date(); System.out.printf("four digit year: %tY/%TY\n", now, now); } }