Retired

Christmas Day (retired)

619 of 1,140fizis

Description:

Sometimes it's useful to know on which day of the week Christmas, the holly holiday, will occur.
Write a function which takes the date of Christmas, and outputs the day of the week it falls on. Just don't limit yourself to this year.

Example:

findOutChristmasWeekday('2013 12 25') // returns 'Wednesday'
findOutChristmasWeekday '2013 12 25' # returns 'Wednesday'
find_out_christmas_weekday('2013 12 25') # returns 'Wednesday'

Only valid Christmas dates will be passed to the function.

Date parameter could be a string or a Date object. If it's a string here are possible date parameter formats:

'2013 12 25'
'12 25 2013'
'25 December 2013'

Note: calendar used in the kata is Gregorian.

Date Time
Fundamentals

More By Author:

Check out these other kata created by fizis

Stats:

CreatedDec 17, 2013
Warriors Trained2612
Total Skips1069
Total Code Submissions11458
Total Times Completed1140
JavaScript Completions619
CoffeeScript Completions101
Ruby Completions415
Total Stars33
% of votes with a positive feedback rating86% of 90
Total "Very Satisfied" Votes71
Total "Somewhat Satisfied" Votes12
Total "Not Satisfied" Votes4
Total Rank Assessments10
Average Assessed Rank
6 kyu
Highest Assessed Rank
5 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • fizis Avatar
  • jhoffner Avatar
  • alchemy Avatar
  • siebenschlaefer Avatar
Ad