Code:
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class DATE extends HttpServlet
{
     public void doGet(HttpServletRequest request, HttpServletResponse          response)throws ServletException, IO Exception
     {
        PrintWriter pw=response.getWritet();
        Date today= new Date();
        pw.println("date is");
        pw.println(today);
      }
}