Servertec | after( )

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 a given date/time falls after a specified date/time. #### Syntax after( date1 , date2 ) date1.after( date2 ) #### Parameters
date1 | the date object being compared.
date2 | the date object being compared to.
#### Returns
boolean | true if date1 is after date2. false if date1 is not after date2.
#### Example
    iDate1 = Date( )
    iDate2 = Date( iDate + 1 )

    if iDate2.after( iDate1 ) then
        print( "ok" )
    end

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