013-003-003
Date Class: Using LocalDate
Medium
Problem Description
Date class: Using LocalDate
In this problem, you will create a program that accepts year, month, and day as input, uses the LocalDate class to create a date, calculates the date 30 days later, retrieves the day of week, and displays the result to standard output.
Learning Objective: Understand how to manipulate dates using the LocalDate class
Overview
Use LocalDate to create dates, format them, and calculate date differences.
Specifications
- Receive year, month, day as input
- Create date using LocalDate.of()
- Calculate the date 30 days later
- Get the day of week
Input
Year, month, and day are provided
Output Format
Date: 2025-01-15
After 30 days: 2025-02-14
Day of week: WEDNESDAY
Ready to Try Running Code?
Log in to access the code editor and execute your solutions for this problem.
Don't have an account?
Sign Up