import java.util.*;
import java.text.*;
public class GettingTheDate {
public static void main(String[] args) {
DateFormat df = new SimpleDateFormat("dd MMM yyyy");
Calendar calendar = Calendar.getInstance();
Date now = calendar.getTime();
String toStore = df.format(now);
System.out.printf("now = %s%ntoStore = %s%n", now, toStore);
}
}