.WAFL (l ø @@*>k©˜cž ÝrkËæntry(‘k©˜cž ÝrkËæ @gurl #http://www.honomichl.com/java.htmlmime text/htmlhntt"25b63e-859-3ee0e411"hvrsdata Java Date Formatting
/********************************************************************************
 *                                                                              *
 *  Class name:     DateFormatExample                                           *
 *                                                                              *
 *  Description:    Display current date according to user's locale             *
 *                                                                              *
 *  Date created:   June 6, 2003                                                *
 *                                                                              *
 *  Written by:     Lloyd Honomichl - lloyd@honomichl.com                       *
 *                                                                              *
 ********************************************************************************/
 
import javax.servlet.http.*;
import javax.servlet.*;
import java.io.*;
import java.util.Locale;
import java.util.Date;
import java.text.DateFormat;

public class DateFormatExample extends HttpServlet
{

    public void doGet(HttpServletRequest req, HttpServletResponse resp)
        throws ServletException, IOException
    {
    
        resp.setContentType("text/html;utf-8"); 
        PrintWriter out = resp.getWriter();
        
        Locale loc = req.getLocale();
        DateFormat df = DateFormat.getDateInstance(DateFormat.LONG, loc);
        out.println("<HTML>");
        out.println("<HEAD>");
        out.println("<TITLE>Date Formatting Example</TITLE>");        
        out.println("</HEAD>");
        out.println("<BODY>");
        out.println("<P>Today is " + df.format(new Date()) + "</P>>");
        out.println("</BODY>");
        out.println("</HTML>");
            
        out.close();
        
    }
}

/********************************************************************************/
/********************************************************************************/
post>k©XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXcate ‘k©L»”‘»+€¯ @Ycat @‘k©L»”‘»+€¯ @Yÿÿþaux *SURL"http://www.honomichl.com/java.html