Try something like:
function isMonday($date_string)
{
return date('D',strtotime($date_string)) == 'Mon';
}Cheers, Stig ctx2002 wrote:
is there a algorithm which decides a given date is monday?
for example:
isMonday('2010-02-10') returns false. but '2010-02-08' returns true.
-- NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected]
