Hi,
I need to get the current date without using any packages or any construction methods. Simply, i want to get the current date by convert date to string. I used this code. Please find the below code...
String getDate = new SimpleDateFormat("yyy/MM/dd HH:mm:ss");
return getDate.format(date);
But, i'm getting these below errors
Error(s) detected while generating java. Compiler reported: ----------
1. ERROR in file://runtime:/PRGenJava/com/pegarules/generated/test_etax_contract_etaxlibrary.java (at line 10437)
String getDate = new SimpleDateFormat("yyy/MM/dd HH:mm:ss");
^^^^^^^^^^^^^^^^
SimpleDateFormat cannot be resolved to a type
----------
1 problem (1 error)
Please Help on this.