在EL表达式中运用substring函数

在EL表达式中使用substring函数

第一步:导入JSTL库

第二步:在jsp头部<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

第三步:在需要使用substring的地方${fn:substring(date,0,10)}

注:date为需要截取的字符串