File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes How to use calender Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to use calender" Watch "How to use calender" New topic
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use calender