NexJ Logo

Now()

Extracts the month of the year from the specified date. This function takes a date and string value as arguments and returns an integer value. The month of the year is given as a value between 1 and 12.

Syntax

Now()

Input

None

Output

date

Examples

Assume that the current date is January 31, 2000 12:00 AM and the user's local time zone is EST, and that you have a form in which there is a date field question that you want to initialize with the current date and time. If the Now() function has been entered in the question's Initialization tab, when you run the form, the date field question will be filled out with a date value that represents January 31, 2000 12:00 AM EST.

Time zones