[PHP-DB] finding out the date of the first day of the current week

2003-03-23 Thread David Rice
I am trying to make a small function that will me the date in Y-m-d of the start of the current week (the sunday) I have only the idea of doing it by making a long drawn out script with if, elseif clauses for every day of the week... and then doing something like if ( date('D') = mon ) {

RE: [PHP-DB] finding out the date of the first day of the current week

2003-03-23 Thread John W. Holmes
I am trying to make a small function that will me the date in Y-m-d of the start of the current week (the sunday) I have only the idea of doing it by making a long drawn out script with if, elseif clauses for every day of the week... and then doing something like if ( date('D') = mon ) {