I have been learning JavaSe & FX for only a few months, although I was once a programmer in COBOL, Assembler and Basic, long ago
I have been looking at the date/time stuff on TutorialsPoint and have tried a bit of sample code and it does not compile. I gives the error 'IllegalFormatConversionException'.
The code is at URL http://www.tutorialspoint.com/java/java_date_time.htm
It is this;
import java.util.Date;
class DateDemo {
public static void main(String args[]) {
// Instantiate a Date object
Date date = new Date();
// display time and date using toString()
System.out.printf("%tc", "Current Time : ", date);
}
}
Could someone tell me what the problem is.
Thank you.