I wrote the following code
Date d = new Date(); CharSequence s = DateFormat.format(\"MMMM d, yyyy \", d.getTime());
But is asking me para
String date = new SimpleDateFormat("yyyy-MM-dd").format(new Date());
// import Date class as java.util