| Author |
How to use calender
|
sony vijay
Ranch Hand
Joined: Jun 27, 2010
Posts: 32
|
|
Hi,
I need to display the current date and time inside a textbox. How do I do this? I have an instance of a zk textbox in my code:
Thanks,
Sony
|
 |
Dinakar Kas
Ranch Hand
Joined: Jul 11, 2010
Posts: 34
|
|
|
Calendar.getInstance().getTime() gives the date object.
|
 |
Vinoth Kumar Kannan
Ranch Hand
Joined: Aug 19, 2009
Posts: 276
|
|
Alternatively you can also use the java.util.Date class..
new java.util.Date() gives you the current date and time.
We go to Calendar class especially when we need to do some date time calculations. Nothing wrong in using it for getting the current date/time either.
|
OCPJP 6
|
 |
 |
|
|
subject: How to use calender
|
|
|