Course of Raku / Advanced / More about built-in types / Date and time / Exercises

One week later

Problem

Take the date 28th of February 2027 and print the date exactly one week later. Use the later method with the appropriate named argument rather than the + operator. On the next line, also print the day-of-week number of that new date.

Example

The program prints:

2027-03-07
7

Solution

See the solution

Course navigation

Solution: Weeks until Christmas   |   Solution: One week later