Loading...


bookmark - Log In

Log In

 
 Discussion by shanker7 with 1 Replies.
 Last Update: August 24, 2011, 10:58 pm
 
bookmark - Log In  
Quickly Post to Log In  w/o signup Share Info about Log In  using Facebook, Twitter etc. email your friend about Log In Print
Reply / Comment New Discussion / Topic Share / Bookmark E-Mail a Friend Print

Hi,
Friends this is shanker...

Can anybody please post me the java code which can store the system time when click on some button...











   Thu Jun 30, 2011    Reply         

You ought to look up the Java API documentation to learn to do this. According to the API documentation, the java.util.Date constructor "initializes it so that it represents the time at which it was allocated," which means that you can do something like this: java.util.Date dt1 = new java.util.Date();

Put the constructor call in an action handler for a button, declare the variable as a member variable of the class, and if you need to display the date anywhere, call the toString() method on the date object. If you want to have more control over how the date is displayed, take a look at the java.text.DateFormat class and, more specifically, the format method of the DateFormat class. You can also build the date string by obtaining the date parts using the java.util.Calendar class. The Calendar.get method takes a parameter that you can specify as "java.text.Calendar." followed by DAY_OF_MONTH, MONTH, YEAR, HOUR_OF_DAY, MINUTE, SECOND.

Use the auto-complete of your Java IDE to help you with finding the other methods for the Date and Calendar classes.

   Wed Aug 24, 2011    Reply         

Quickly Post to Log In  w/o signup Share Info about Log In  using Facebook, Twitter etc. email your friend about Log In Print
Reply / Comment New Discussion / Topic Share / Bookmark E-Mail a Friend Print

Similar Topics:

Cant Log In

This is where im trying to log in at and i cant get i entered my password and login name but it wont let me in and i cant even get in the cpanel can anyone please help me out thanks http://www.Trap17.com/manage ...more

   12-May-2008    Reply         

Is It Just Me Or Does Trap17 Has A ...

Hi people, I will try and make this thread as polite as possible, but I won't hide the fact that I am incredibly and very, very annoyed at the Trap17's forum's log in script system... (Or maybe it's just me, I'm feeling very annoyed today... ...more

   27-Sep-2009    Reply         

Trying To Log In To Xisto Support

when i try and log in, i get the error "License Validation Failed." haha what the heck does that mean i thought at first it was a password issue so i r ...more

   06-Nov-2009    Reply         

Txtweb App2Fame Contest For Developers In India    Txtweb App2Fame Contest For Developers In India (0) (1) Diffrence Between Jsp And Java Script   Diffrence Between Jsp And Java Script