THE PACKAGE JAVA.UTIL
java.util.Date
21.3
21.3.12
public int getMonth()
The returned value is a number (
0
through
11
) representing the month that con
tains or begins with the instant in time represented by this
Date
object, as inter
preted in the local time zone.
21.3.13
public void setMonth(int month)
This
Date
object is modified so that it represents a point in time within the speci
fied month, with the year, date, hour, minute, and second the same as before, as
interpreted in the local time zone. If the date was October 31, for example, and the
month is set to June, then the new date will be treated as if it were on July 1,
because June has only 30 days.
21.3.14
public int getDate()
The returned value is a number (
1
through
31
) representing day of the month that
contains or begins with the instant in time represented by this
Date
object, as
interpreted in the local time zone.
21.3.15
public void setDate(int date)
This
Date
object is modified so that it represents a point in time within the speci
fied day of the month, with the year, month, hour, minute, and second the same as
before, as interpreted in the local time zone.If the date was April 30, for example,
and the date is set to 31, then it will be treated as if it were on May 1, because
April has only 30 days.
21.3.16
public int getDay()
The returned value (
0
= Sunday,
1
= Monday,
2
= Tuesday,
3
= Wednesday,
4
=
Thursday,
5
= Friday,
6
= Saturday) represents the day of the week that contains or
begins with the instant in time represented by this
Date
object, as interpreted in
the local time zone.
627
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved