View Problem

Display information about a date

Display the day of month, day of year, month name and day name of the day 8 days from now.
ExpandDiskEdit
groovy
use (TimeCategory) {
eight_days_time = 1.week.from.now + 1.day
}
println eight_days_time[DAY_OF_MONTH]
println eight_days_time.format('d') // alternative to above
println eight_days_time[DAY_OF_YEAR]
println eight_days_time.format('MMMM')
println eight_days_time.format('EEEE')

Submit a new solution for groovy
There are 15 other solutions in additional languages (clojure, cpp, csharp, fantom ...)