You could use time as well...

i.e.
between '#date1# 00:00:00' and '#date2# 23:59:59'

Jeff





On 11/2/05, Jason Ramsden <[EMAIL PROTECTED]> wrote:
>
> Thanks Jenny. You're right, not exactly what I needed, but at least it got
> me to the neighborhood I needed to be so searching other information was
> easier. Anyway, I got it to work as follows (I'm sure there are better ways
> to do it, but it works for me :-)
>
> <!--- GLOBAL VARIABLES for this page --->
> <cfset todaysDate = DateFormat(Now(), "mm-dd-yyyy") >
> <cfset todaysDate1 = DateFormat(DateAdd('d',1,todaysDate), "mm-dd-yyyy") >
> <cfset todaysDate7 = DateFormat(DateAdd('d',7,todaysDate), "mm-dd-yyyy") >
>
> <!--- Query Selects Leave Information Today Only --->
> <cfquery name="rsGetLeaveToday" datasource="IntranetApp">
> SELECT EmpFirstInitial,EmpLast,LeaveStart,LeaveLoc
> FROM dbo.tbl_Leave
> WHERE #CreateODBCDate(todaysDate)# between LeaveStart AND LeaveEnd
> ORDER BY EmpLast ASC
> </cfquery>
>
> <!--- Query Selects Leave Information for Leave Next 7 Days--->
> <cfquery name="rsGetLeaveEntire" datasource="IntranetApp">
> SELECT EmpFirstInitial,EmpLast,LeaveStart,LeaveEnd,LeaveLoc
> FROM dbo.tbl_Leave
> WHERE LeaveEnd between #CreateODBCDate(todaysDate1)# and
> #CreateODBCDate(todaysDate7)#
> ORDER BY LeaveEnd ASC
> </cfquery>
>
> >Hi Jason,
> >
> >Not sure this will be the right way for you, but I tend to use datediff a
> >lot more than Between.
> >
> >Jenny
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1504
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to