Adding a day and subtracting a second won't necessarily get you midnight tonight. Also, given that daylight savings doesn't change at midnight, I can't see how/why this would be an issue. I have used solutions like this in the past without issues with DST.
On 5/23/07, Kris Jones <[EMAIL PROTECTED]> wrote: > > This is one way of doing it. But watch out. Got bit by some old code > that used this approach on the switch to daylight savings time. It's > better to add a day, then subtract a second. > > > If you want to check until midnight today: > > > > SELECT * from request.events WHERE EventDate < > > #createDateTime(Year(Now()),Month(Now()),Day(Now()),11,59,59)# > > > > Also, you might want to use <cfqueryparam> to pass in the value to SQL. > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278966 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

