-
Simple Javabean help needed!
Hey guys, first time posting - long time lurking!
Can anyone help me with the code for a simple Javabean?
It needs to obtain the current day, date and time by using the 'CALENDAR' object.
It needs to provide 'get' methods that return the current day name(text) date and time as strings.
The date needs to be retrurned to the bean in the format dd/mm/yyyy and the time hh:mm:ss (leading zeros required for single digit fields)
A main method contained would be useful to let me see it work before i include it anywhere.
I would be eternally grateful to anyone who can help with this matter!!
Thanx in advance.
-
Bean or EJB?
If it is just a java bean, it a normal object with a setter / getter for every one of it's members.
If you need JEB it involves more.
Sharbov.
-
I think that you don't know how to code the logic itself. Check Calendar, GregorianCalendar, DateFormat and SimpleDateFormat.
ArchAngel.
O:-)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks