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
|