import java.util.Date;
import java.util.Formatter;
public class MainClass {
public static void main(String args[]) {
Formatter fmt = new Formatter();
fmt.format("%t", new Date());
System.out.println(fmt);
}
}
Exception in thread "main" java.util.UnknownFormatConversionException: Conversion = 't'
at java.util.Formatter$FormatSpecifier.(Formatter.java:2646)
at java.util.Formatter.parse(Formatter.java:2477)
at java.util.Formatter.format(Formatter.java:2411)
at java.util.Formatter.format(Formatter.java:2364)
at MainClass.main(MainClass.java:8)