Hi Haris,
See GregorianCalendar, the docs show a number of examples:
http://java.sun.com/j2se/1.3/docs/api/java/util/GregorianCalendar.html
Joe Sam
Joe Sam Shirah
Autumn Software - Consulting/Development/Outsourcing
Just the JDBC FAQs: http://www.jguru.com/faq/JDBC
Going International? http://www.jguru.com/faq/I18N
Que Java400? - Coming soon to a FAQ near you.
----- Original Message -----
From: "Haris Berbic" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 29, 2000 4:01 AM
Subject: Date
> Hello
>
> I have a roblem
> Date class is depricated, how can I do this with Calendar class.
>
> java.util.Date startDate;
> java.util.Date endDate;
>
> ResultSet rs = stmt.executeQuery(Query);
> while (rs.next()) {
> startDate = new java.util.Date(rs.getDate("start_date").getYear(),
>
> rs.getDate("start_date").getMonth(),
>
> rs.getDate("start_date").getDate());
> startDate.setHours(rs.getTime("start_time").getHours());
>
startDate.setMinutes(rs.getTime("start_time").getMinutes());
>
> endDate = new
> java.util.Date(rs.getDate("end_date").getYear(),
>
> rs.getDate("end_date").getMonth(),
>
> rs.getDate("end_date").getDate());
> endDate.setHours(rs.getTime("end_time").getHours());
> endDate.setMinutes(rs.getTime("end_time").getMinutes());
>
> Regards
> Haris
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html