C:set stored value

Source: Internet
Author: User

<c:foreach
items= "${appoint}" var= "appoint" >
<c:set var= "Begin" value= "${appoint.begintime}"/>//value receive background passed values//var call notation
<fmt:formatdate value= "${begin}" var= "BeginTime" //value receive the value of the previous VAR Var continues to call formatting time to others
pattern= "hh:mm"/> //fmt:formatdate is converting a date type to a string type pattern= "hh:mm" Turn format

                         Fmt:parsedate is converting a string type to a date type pattern= "hh:mm" to a format
<c:set var= "End" value= "${appoint.endtime}"/>//simpledateformat of Parse (string str) is to convert a string type to a date type

SimpleDateFormat format (date date) is a date date type type that is converted to a string type

<fmt:formatdate value= "${end}" var= "Endtime"
pattern= "hh:mm"/>
<c:set var= "Date" value= "${appoint.endtime}"/>
<fmt:formatdate value= "${date}" var= "date"
pattern= "Mm/dd/yyyy"/>

<c:if
test= "${appoint.status = = 1 && appoint.staffid==beautician.id && begintime <= str && endtime& Gt;=str && dd==date} ">
${appoint.customername} approx.
</c:if>
<c:if
test= "${appoint.status = = 2 && appoint.staffid==beautician.id && begintime <= str && endtime& Gt;=str && dd==date} ">
${appoint.customername} has been to the store
</c:if>


</c:forEach>

C:set stored value

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.