Monika
October 5th, 2000, 05:36 AM
hi,
I have taken the date from the user in a text box in the format dd mm yyyy.
If I use java.sql.date, then I can not make a date(i.e can not set day , month, year).
If I use java.util.date , and set the date, and then insert into the database,
the year 2000 is retrieved as 3900.Now, I dont want to enter 3900 into the database.
How can I enter the correct date into the database.
Your help will be greatly appreciated.
Thanks in advance
Monika
I have taken the date from the user in a text box in the format dd mm yyyy.
If I use java.sql.date, then I can not make a date(i.e can not set day , month, year).
If I use java.util.date , and set the date, and then insert into the database,
the year 2000 is retrieved as 3900.Now, I dont want to enter 3900 into the database.
How can I enter the correct date into the database.
Your help will be greatly appreciated.
Thanks in advance
Monika