Java LocalDateTime create now()
now()
import java.time.LocalDateTime; public class Main { public static void main(String[] args) { LocalDateTime dateTime = LocalDateTime.now(); System.out.println(dateTime); }/* w w w.j a va2 s. c o m*/ }