Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 automated dates
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
nothing123




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
HellblazerX




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: