+ 1

Current date using java

How to collect current date in YYYY/MM/dd in java NetBeans?

25th Mar 2018, 10:06 AM
Nishra Nasar
Nishra Nasar - avatar
2 ответов
+ 2
I found it!! import java.time.LocalDateTime; String date=LocalDateTime.now ().toString (); //output 2018-03-25
25th Mar 2018, 10:37 AM
Nishra Nasar
Nishra Nasar - avatar
+ 2
good job 👍
25th Mar 2018, 1:14 PM
Farshaad Heydari
Farshaad Heydari - avatar