KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > tableapp > business > DaterImpl


1 /*
2  * tableApp
3  *
4  * Enhydra super-servlet business object
5  *
6  * Prozone
7  *
8  */

9
10 package tableapp.business;
11
12 // Enhydra SuperServlet specification imports
13
import tableapp.spec.Dater;
14
15 // Standard imports
16
import java.util.Date JavaDoc;
17 import java.text.DateFormat JavaDoc;
18
19 public class DaterImpl
20     implements Dater {
21
22   public String JavaDoc getDate() {
23     return DateFormat.getTimeInstance(DateFormat.MEDIUM).format(new Date JavaDoc());
24   }
25 }
Popular Tags