Servertec equals( )
Content
Introduction
Release Notes
Features
FAQs
Requirements
Installation
Change Log
Future Plans
Knowledge Base
Reference Manual
Conventions
Scriptlets
Data Types
Constants
Variables
Procedures
Operators
Statements
Objects
Array
Config
Context
Cookie
Date
after( )
before( )
ctime( )
Date( )
equals( )
getDay( )
getHours( )
getMinutes( )
getMonth( )
Date_getSeconds( )
getTime( )
getTimezone( )
getWeekday( )
getYear( )
now( )
setHours( )
setMinutes( )
setMonth( )
setSeconds( )
setTime( )
setYear( )
toGMTString( )
toLocaleString( )
toString( )

Enumeration
File
FileDescriptor
Hashtable
Internet
IO
JDBC
Number
Object
Properties
Random
Request
RequestDispatcher
Response
Session
SqlTypes
Stack
StreamTokenizer
String
StringBuffer
StringTokenizer
System
Vector

Wrappers
Servlet
Server Pages
Preprocessor
Executable
Samples
Legal
Contact Us

 

Returns whether the specified date objects refer to the same date/time.

Syntax

    equals( date1 , date2 )
    date1.equals( date2 )

Parameters

    date1 the date object being compared.
    date2 the date object being compared to.

Returns

    boolean true if date1 equal to date2.
    false if date1 is not equals to date2.

Example

    iDate1 = Date( )
    iDate2 = Date( iDate )
    
    if iDate1.equals( iDate2 ) then
        print( "ok" )
    end
    
    if equals( iDate1, iDate2 ) then
        print( "ok" )
    end
    
 top of page
Copyright © 1998-2005 Servertec. All rights reserved.
Privacy Statement.
Last Modified: Sun Sep 04 14:56:08 EDT 2005