Use the SQL function DATEDIFF()
>
> I hope someone out there can help me.
>
> I'm polling my sql server 2k database for data according to the date it
> was submitted inside the database. This is what I am currently using in
> my "where statement":
>
> formfield <= getdate() -1
>
> the -1 is supposed to select all data one day old using the short date
> mask in the database. All values in the database are already in the
> mm/dd/yyyy form.
>
> but this is not working. Does someone out there have a solution for me?
>
> If someone wants to see this monster fusebox site, go to
> www.hotmediadeals.com
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists