need help on about date and time

hi all,i have been looking many places but does anyone know how to get current time and date and display them when pressed on a button?thanks
[162 byte] By [obenera] at [2007-11-26 18:11:59]
# 1
http://java.sun.com/docs/books/tutorial/i18n/format/dateintro.html
DrLaszloJamfa at 2007-7-9 5:44:43 > top of Java-index,Java Essentials,Java Programming...
# 2

Realize there are three separate things you have to master in your problem:

1. Getting the current date and time

2. Formatting that are you wish it to appear

3. GUI issues: responding to a button click and displaying a string. To help you with this, you have to be clearer about your program. AWT? Swing? SWT? Web application?

DrLaszloJamfa at 2007-7-9 5:44:43 > top of Java-index,Java Essentials,Java Programming...