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.
DiskEdit
ruby
require 'date'

next_week = Date.today + 8

puts next_week.day # day of month
puts next_week.yday # day of year
puts next_week.strftime('%B') # month name
puts next_week.strftime('%A') # day name
ExpandDiskEdit
clojure
(let [cal (Calendar/getInstance)]
(.add cal Calendar/DAY_OF_YEAR 8)
(println (.format (SimpleDateFormat. "d, D, MMMM, EEEE")
(.getTime cal))))

Submit a new solution for ruby or clojure
There are 14 other solutions in additional languages (cpp, csharp, fantom, fsharp ...)