Create a Calendar object from year, month and day.
c = getDate()
c =getDate(y, m, d)
c =getDate([y, m, d])
c =getDate([y, m, d, hour, minute, second, millisecond ])
y The year.
m The month in range [1,12] .
d The day of the month.
hour The hour (in range [0,23] ).
minute The minute of the hour.
second The second of the minute.
millisecond The millisecond of the second.
c The java.util.Calendar object constructed from the input.

The last form the input is the array returned by the function clock . Without any argments, getDate() returns the current date as a java.util.Calendar object.