Visual J# Reference
Date.getMonth Method

Gets a value indicating the month.

Package: java.util

Assembly: vjslib (in vjslib.dll)


public int getMonth();
Return Value

A value indicating the month. The returned value will be between 0 and 11.

Example
// da-getMon1.jsl
// Date.getMonth example

import java.util.*;

public class MyClass
{
    public static void main(String[] args)
    {
        // Construct a date object:
        Date d = new Date();   // Current date

        // Get the month:
        System.out.println("The month is: " + d.getMonth());
    }
}

/*
Output:
The month is: 8
*/