Answers for "java 11 get current date as string"

1

java Date get today date

SimpleDateFormat formatter = new SimpleDateFormat("dd-MM-yyyy");
Date today = new Date();
System.out.println(formatter.format(today));
Posted by: Guest on June-02-2021
0

how to read a date string in java

LocalDate date = LocalDate.parse("2018-05-05");
Posted by: Guest on March-20-2021

Code answers related to "java 11 get current date as string"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language