Servertec Date( )
M E N U

Content
Introduction
Release Notes
Requirements
Installation
Change Log
Future Plans
Knowledge Base
Referance Manual
Conventions
Scriptlets
Data Types
Constants
Variables
Procedures
Operators
Statements
Objects
Array
Cookie
Date
Error
File
FileDescriptor
Hashtable
Internet
IO
JDBC
Number
Object
Properties
Random
Request
Response
SqlTypes
Stack
StreamTokenizer
String
StringBuffer
StringTokenizer
System
Vector

Wrappers
Server Side
Preprocessor
Executable
Make
Samples
Legal
Feedback

 


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

                    if parameters are not specified the current date is returned.
    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.

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
Built with iScript Copyright © 1997-1998 Servertec. All rights reserved.
Last Modified: Wed Apr 15 00:16:38 EDT 1998