Forum Moderators: coopster

Message Too Old, No Replies

How to get this weekend events from a datetime field

How to get this weekend events from a datetime field

         

usman

10:06 am on Aug 22, 2010 (gmt 0)

10+ Year Member



hi,

I have an events table and have a datetime field save which is event start date. I need to find all events from that start date which are in this weekend. What should be the query for this?

Also can you please let me know what will be the query for find events which are in next weekend.

Thanks,

rocknbil

5:47 pm on Aug 22, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There are a number of ways. The simplest way, note the comments by "Jeffrey Friedl" on the date and time functions docs [dev.mysql.com].

usman

7:01 pm on Aug 23, 2010 (gmt 0)

10+ Year Member



What will be the sql query for it?