how to display the current date in format yyyy-MM-DD, same as the default format of mySQL
i try this in jsp,
DateFormat df = new SimpleDateFormat("yyyy-MM-dd"
String formattedDate = df.format(theDate);
out.print(formattedDate);
error
cannot resolve symbol symbol : class DateFormat
i try this in jsp,
DateFormat df = new SimpleDateFormat("yyyy-MM-dd"
String formattedDate = df.format(theDate);
out.print(formattedDate);
error
cannot resolve symbol symbol : class DateFormat