Tunnel API

datediff

Other API in Package

Web

User

Internal Tunnel

Internal Web

datediff tag

This tag calculates the difference between two dates and stores the properties (years, months, days, hours, minutes, seconds, and past) into the render engine for display by referencing the designated variable name. If no start-date is provided, the server date/time will be used for comparison. past is a boolean, true means the end date is in the past compared to the start date.

Tag Attributes
Attribute Notes
name Required
endDate Required
startDate
test
pattern

Sample:

<c:datediff name="date" endDate="01-01-2014"/>

Years: ${date.years}
Hours: ${date.hours}
Copyright © 2006 - 2024, ContractPal, Inc. All rights reserved. API Date: Jul 15, 2024 03:42 PM