Hi,
Thanks for your replies. I tested both of your methods and mine too. But in
all the cases I found the date to be inserted Random as "1899" or "1905" or
so on.
cal = Calendar.getInstance();
cal.set(year,month,date);
sqlDate = new java.sql.Date(cal.getTime().getTime());
or
totdate = year+
27;})
Jon
- Original Message -
From: "Uma Maheswar" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, February 11, 2002 12:00 PM
Subject: Inserting DATE into SQL server
Hi,
I wanted to insert date values into the database in SQL Ser