in reply to Way to calculate day-of-the-week

"best" is subjective of course. Ordinarily I would use Time::Piece as it is core. It comes with the day_of_week method which does what you intend and uses strptime for date parsing. However, this task is very much TIMTOWTDI. There are a plethora of date and time parsing/manipulation modules and it pays to be at least passingly familiar with the most popular ones.