hi,
Include this one in JSP page
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
I hope you have heared about jstl.
//create an object representing the current date
<jsp:useBean id="now" class="java.util.Date"/>
//create a java class that convert in your format
Try this...
String stringDate = "20/01/1999";
try
{
SimpleDateFormat formatter = new SimpleDateFormat
("dd/MM/yyyy");
ParsePosition pos = new ParsePosition(0);
Date date = formatter.parse(stringDate, pos);
}
catch (Exception e)
{
//Date is not valid
throw new IllegalArgumentException();
}
//output the date
<fmt:formatDate type="both" value="${now}" dateStyle="full" timeStyle="short" />
Regards
CookBookJ