<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ attribute name="name" required="true" description="Nombre del elemento" %>
<%@ attribute name="id" required="false" description="Id del elemento" %>
<%@ attribute name="clazz" required="false" description="Estilos que aplican al elemento" %>
<%@ attribute name="value" required="false" type="java.util.Date" description="Valor del elemento de tipo Date"  %>
<%@ attribute name="onclick" required="false" description="Eventos javascript que se desencadenan al hacer click" %>

<input type="text" name="${name}" id="${id}" class="datepicker ${clazz}"  onclick="${onclick}" 
	value="<c:if test="${value != null}"><fmt:formatDate pattern='MM/dd/yyyy' value='${value}' /></c:if>"/>