Ask a Question related to Coldfusion Database Access, Design and Development.
-
koeniga #1
Date/Time Problem
I have a SQL Server 2000 database that extracts rates due to times of year.
My problem is that when users extract times not set in the parameter there is
no return of rate.
My SQL is
FROM dbo.houserate
WHERE (house = '#pid#') AND (Startdate <=
'#Dateformat(input1,"mm/dd/yyyy")# #timeformat(rightnow, "16:00:00")#') AND
(Enddate >= '#Dateformat(input2,"mm/dd/yyyy")#')
What is my best solution to fix this?
koeniga Guest
-
MS Access time and date problem
As the topic summary says, I am having trouble inserting both time and dates into a MS Access database. My database has three fields, eventdate,... -
A Date and Time problem?
Hi, I've got a couple of problems i could do with a hand on, 1) I've made a test in Flash MX 2004, i would like to start something that resembles a... -
php mkdir touch time-date problem
Dear all, I have a problem which I can not explain-understand. I hope someone can help me. I use php under WinXP. I want to copy a dir to... -
Convert date/time to date in SQL Server 2000 statement
Can this be done? tia -
ASP Insert Date & Time Problem
Hi All, I live in Australia and I have Access installed on my computer. Regional settings are set to Australian Standards (dd/MM/yyyy) I try to... -
Dan Bracuk #2
Re: Date/Time Problem
So you have a form with two dates and you want to user proof it? This happens
to us so often that I wrote a custom tag for it. It was written when we were
using version 4.5 so it could be improved upon, but the logic is:
1. make sure both form fields are actual dates
2. make sure they are in the right order
3. make sure they fall within a pre-defined range.
4. make sure they are not too far apart.
Write some code to address all four of these, and you'll be fine. The version
7 version of cfform makes the first one unnecessary.
Dan Bracuk Guest
-
TurboMini #3
Re: Date/Time Problem
also consider #createodbcdate()# and #createodbcdatetime()# and #isdate()# if you are doing server-side validation of the dates before running the SQL query
TurboMini Guest



Reply With Quote

