EDate (date) label: Date addition and subtraction instance (a code line calculates the number of days before 50 days), edate days before
Example:
What was the number 50 days ago?
Calculation (@ {sys: date} = today,-50 minus 50, unit = day is measured in days)
<edate id=test><we date="@{sys:date}" operation="-50" unit="day"/></edate>
Output computing result
<P> <B> result: </B> 50 days ago, @ {test: date}. </p>
Complete output results
<B> complete output </B> <table border = 1> <tr> <th> key </th> <th> value </th> </tr> <end = "@ {test: getWidth} "> <tr> <td >@{ test :@{ for: getSuffix }}</td> <td >@{ test :@{ test :{: getSuffix }}</td> </tr> </for> </table>
Effect
Complete code
<Html> <title> date calculation: Number 50 days ago </title>
Pass@ {Test: key}You can retrieve the expected results.
(Example file: _ samples/date-50day.html) inLight PlatformUnder the _ samples Directory
What is the number in 50 days?
Download Easy Do IT resources
Platform and the latest development manual free download: http://download.csdn.net/detail/tx18/8464425
Development Instance:Light B2C e-commerce websites, Free download: http://download.csdn.net/detail/tx18/8318585
The light-Open Platform will occasionally upgrade to provide more powerful and Easy functions for you. Please note thatDownload the latest version
Computing