I want to get the Date in MM/DD/YY format from a timestamp.
MM/DD/YY
I have used the below method but it does not gives proper output
final Calen
Date date = new Date(System.currentTimeMillis()); SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yy"); String s = formatter.format(date); System.out.println(s);