I stumbled upon a idea below and wanted to know your opinion:
DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
Date date = new Date();
System.out.println(dateFormat.format(date));
If the user's computer is set to a wrong date, does this is print out wrong date. From where does the JVM captures the date ? How to make sure that Date is always printed correctly even when the end user has adjusted his date?