• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Date and Calender class with applet

 
P Thankaraj
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I construct an applet which shows the current Date and time using Date and Calender classes? to get the hour, minutes, week, days of a month as numbers?
Please note that it is not application but through applet.
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The Date and Calendar classes can be used by an applet the same as they can be used by an application. To get the current date instance just create a new Calendar instance and it will magically appear in the new object!
NOTE: Your chosen user name is not valid here at the ranch. We require a firstName + space + lastName to maintain a professional atmosphere. Please read the Ranch naming policy here and re-register with a valid user name.
Thanks,
Manfred.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic