Jump to content

Date from and date to fields


dc_jt

Recommended Posts

I'm not sure, it may depend on what sql you run, but I just use "and" [where start_date <= '$date' and end_date >=$date] or you may even be able to use "between" [where '$date' between start_date and end_date] (I use "between" but usually it is the other way around, I have two date variables and only one database field I am looking for)  Hope this helped more than hurt, and good luck.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.