Servertec | Date( )

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 a new date object set to current or specified date/time. #### Syntax Date( ) Date( string ) Date( milliseconds ) Date( year , month , day ) Date( year , month , day , hour , minutes , seconds ) #### Parameters
string | string representation of a date in yyyy-mm-dd hh-mm-ss format.
year | the year.
month | the month.
day | day of month.
hour | the hour.
minutes | the minutes.
seconds | the seconds.
#### Returns
date | the new date object.
#### Notes If parameters are not specified the current date is returned. #### Example
    today = Date( )
    tomorrow = Date( today + 1 )
    iDate = Date( 1997, 12, 31 )
    iDate = Date( 1997, 12, 31, 10, 30, 0 )
    iDate = Date( "1997-12-31 10:30:00" )
top of page Copyright © 1998-2005 Servertec. All rights reserved. Privacy Statement. Last Modified: Sun Sep 04 14:56:08 EDT 2005