Hi ,
I'm new to servlets and I'm trying out the Date function in servlets. Instead of printing todays date it is giving something like "Date@fbb7cb" this . Could you please point of my mistake .... Following is the code snippet
PrintWriter pw = response.getWriter();
Date today = new Date();
pw.println("<HTML>"+"<BODY>");
pw.println(today+"</BODY>"+"</HTML>");
Note: ive made all the proper declarations
thanks