automated dates
Author |
Message |
nothing123
|
Posted: Wed Jun 07, 2006 2:31 pm Post subject: automated dates |
|
|
i have to make a program where the user adds transactions of an account in a bank database. apparantly, when the user finishes adding the transaction and acknowledging it (pressing enter), there is some technique to store the exact time they saved the transaction (similar to what you would do in a real bank).
so far i haven't been able to figure it out. any ideas?
btw, im using Holt's Ready to Program if that's of any use. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
HellblazerX
![](http://www.plamania.co.kr/shopimages/plmtest/2910040000213.jpg)
|
Posted: Wed Jun 07, 2006 4:04 pm Post subject: (No subject) |
|
|
You should check out the Java API or the Java Almanac for such methods before posting here. In any case, what you need is the Date class. There is a constructor which automatically initializes the time to when you created that class. So, if you created such a class when the user finish entering his transaction, then you would have the exact time he made it. |
|
|
|
|
![](images/spacer.gif) |
|
|