EDate (date) label date plus minus instance (one line of code calculates what date is 50 days ago)

Source: Internet
Author: User
Tags what date

Example:

What was the date 50 days ago?

Computation (@{sys:date}= today,-50 minus 50,unit=day unit for day)

<edate id=test><we date= "@{sys:date}" operation= " -50" unit= "Day"/></edate>
Output calculation results

<p><b> results: </b>50 days ago is @{test:date}</p> complete output result

<b> full output </b>
<table border=1>
  <tr><th>key</th><th>value</th ></tr>
  <for end= "@{test:getwidth}" >
    <tr><td>@{test:@{for:getsuffix}}</td ><td>@{test:@{test:@{for:getSuffix}}}</td></tr>
  </for>
</table>
Effect

Complete code

 

The desired result item can be removed by @{test:key}

(example file: _samples/date-50day.html) in the _samples directory of the light open platform

Try to figure out what the date is in 50 days.

Easy Internet Development platform (easily do IT) resource download

Platform and latest development manuals free Download: http://download.csdn.net/detail/tx18/8464425

Development example: Light Open Business E-commerce website , free download: http://download.csdn.net/detail/tx18/8318585

Open platform will not be regularly upgraded to provide you with more powerful and easy features, please pay attention to download the latest version
Calculation

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.