Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

VBScript Month Function

Returns a whole number between 1 and 12, inclusive, representing the month of the year.

Syntax: VBScript Month Function

Month(date)

Arguments: VBScript Month Function

date

Any expression that can represent a date. If date contains Null, Null is returned.

Remarks: VBScript Month Function

The following example uses the Month function to return the current month:

Dim MyVar

MyVar = Month(Now) ' MyVar contains the number corresponding to

                   ' the current month.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.