My registration form contains
Name, Email, Password,Country,State.
I need to store the date when the person registers it and without getting date from the user.
Help me Please........
Front end: java
Database: MS Access
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ehtesham MehmoodRank #719 · 3.3K reputationPosted Mar 16, 2014, 10:21 AM EDT
DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd"); //get current date time with Date() Date date = new Date(); //System.out.println(dateFormat.format(date)); don't print it, but save it! String yourDate = dateFormat.format(date); Then in yourDate variable your date will store according to the above given format so using this variable you can store this value in your database.Abhijeet SinghRank #415 · 6K reputationPosted Mar 19, 2014, 9:51 AM EDT
http://office.microsoft.com/en-in/access-help/store-the-date-and-time-when-a-record-is-modified-HA010342039.aspx
and
http://www.vipan.com/htdocs/javadatabase.html