calendar-related code snippet request
Does anybody have a function (preferably written in C/++, Perl, or PHP) that takes a date (in month, year, and date format, with the M,D,Y parameters in any order) and returns what day of the week it was? I don't know the rules for adjustments and leap years and whatnot, so I can't really code this bit myself.
|