Java tutorial
import java.text.Format; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static void main(String[] argv) throws Exception { Date date = new Date(); Format formatter = new SimpleDateFormat("MM/dd/yy"); String s = formatter.format(date); System.out.println(s); } }