The Hermit Hermit's Free Library  Brain Teasers

One in a series of exercises that demonstrate how to accomplish real-world computing tasks using time- and work-saving techniques.

Brain Teaser #4: Manipulating Dates and Transforming Lists


In digital format you have a list of the names and birthdays for your 1st grade students.

You want to put the birthday list on display in the classroom, but your file is not formatted very appropriately for your first graders.

Instead, you would like the childrens' names to appear first, followed by the birtdates. Also, the students names should appear as first name and then last name.

The dates should be in a format which presents the day of the week's name followed by the name of the month, and finally the date and year.

Also you want the birthday list to be in chronological order.

Example:   Elvira Bacchi - Tuesday, April 6th, 2010

Link to solution is below.


55 seconds


04/06/2010, Elvira Bacchi

07/12/2001, James Mahoney

06/23/2010, Janet Dooley

10/30/2010, Howard Schinder

05/29/2010, Amanda Cooder

01/13/2010, Annabelle Washington

12/17/2010, Lucy Cambell

11/05/2010, Wilson Straley

08/15/2010, QuangVinh Trinh

09/21/2010, Francine Levis