Thanks


I could not get DateCompare to work but I guess I typed something wrong.


Mario
-----Original Message-----
From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 22, 2004 2:39 PM
To: CF-Talk
Subject: Re: Does anyone have a function that can compare time sort of like da
tecompare

A concrete example:

<cfset theTime = "1:30 PM">

<cfif dateCompare("12:00 PM", theTime) is -1 and dateCompare(theTime,
"2:00 PM") is -1>
<cfoutput>
#theTime# is btn 12:00PM and 2:00PM
</cfoutput>
</cfif>

On Thu, 22 Jul 2004 19:26:34 +0100, Ciliotta, Mario
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I was wondering if anyone has a function or UDF that I can use to compare
> time.
>
> What I need to do is:
>
> a user entering a time say 1:30PM,  I need to check that 1:30PM falls
between
> 12:01PM and 2:00 PM.
>
> I tried to search on CFLIB but everything is date oriented.
>
> Thanks
> Mario
>
>
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to