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