I tried to get the current date in a specific format, but instead of the month got minutes
import java.text.SimpleDateFormat;
import java.util.Calendar;
public class CurrentDate {
public static String currentDate() {
String timeStamp = new SimpleDateFormat("mm/dd/yyyy").format(Calendar.getInstance().getTime());
return timeStamp;
}
public static void main (String [] args) {
System.out.println(currentDate());
}
}
Why this code gives minutes ... i tried mon ... ???