How to get first weekday in the month...
Posted: Mon Apr 03, 2006 6:27 pm
Hi,
I would like to insert 1 or 0 in my mysql Table depending on "first weekday in a month" (eg: Apr 3rd, 2006 or May 1st, 2006 or July 3rd, 2006 etc).
I can insert 0 or 1 if 1st of the month comes on Mon - Friday..but I could not insert 1 0r 1 if it falls on Sun/Sat'day eg: Apr 3rd, 2006 or jul 3rd, 2006...
Could you please help me achedive this in PHP/mysql script ...
Thanks in advance...
I would like to insert 1 or 0 in my mysql Table depending on "first weekday in a month" (eg: Apr 3rd, 2006 or May 1st, 2006 or July 3rd, 2006 etc).
I can insert 0 or 1 if 1st of the month comes on Mon - Friday..but I could not insert 1 0r 1 if it falls on Sun/Sat'day eg: Apr 3rd, 2006 or jul 3rd, 2006...
Could you please help me achedive this in PHP/mysql script ...
Thanks in advance...