import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
public class DayOfDate {
public static void main(String[] args) {
// Create a DateTimeFormatter object
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd/MM/yyyy");
// Get the current date
LocalDate currentDate = LocalDate.now();
// Parse the given date
LocalDate givenDate = LocalDate.parse("09/11/1999", formatter);
// Get the day of the given date
String dayOfGivenDate = givenDate.getDayOfWeek().name();
// Print the day of the given date
System.out.println("Day of the given date is: " + dayOfGivenDate);
}
}
import java.time.format.DateTimeFormatter;
public class DayOfDate {
public static void main(String[] args) {
// Create a DateTimeFormatter object
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd/MM/yyyy");
// Get the current date
LocalDate currentDate = LocalDate.now();
// Parse the given date
LocalDate givenDate = LocalDate.parse("09/11/1999", formatter);
// Get the day of the given date
String dayOfGivenDate = givenDate.getDayOfWeek().name();
// Print the day of the given date
System.out.println("Day of the given date is: " + dayOfGivenDate);
}
}
TODAY 9AM-12 PM if you want to learn spring and spring boot just ping us will cover everything with concepts
Anonymous Poll
86%
Yes
14%
No