0 votes
in JAVA by
How to get current date in java?

1 Answer

0 votes
by

"DateFormat df = new SimpleDateFormat(""dd/MM/yy HH:mm:ss"");

Date dateobj = new Date();

System.out.println(df.format(dateobj));"

Related questions

+2 votes
asked Feb 8, 2020 in JAVA by rahuljain1
0 votes
asked Oct 24, 2020 in JAVA by sharadyadav1986
...