Page 1 of 1

selecing dates

Posted: Fri Feb 29, 2008 6:49 am
by itsmani1
~pickle | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


I want to select date after 2 days but don't want to count Saturday and Sunday.
Here is my current query which picks date simply after 2 days.

Code: Select all

SELECT DATE_ADD('2006-05-00',INTERVAL 2 DAY);
I want it to exclude Saturday and Sunday if Saturday and Sunday is coming it should cross 2 days.

thank you


~pickle | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]