Creator Help

days360

Table of Contentsup

Overview

The days360 function returns the number of days between two given dates.

Syntax

days360(start_date, end_date)

where,
start_date, end_date  are the two date fields in your form between which you want to know the number of days. If start_date occurs after end_date, the days360 function returns a negative number. The date can be a date or date-time field, or results of other date functions, for example, datevalue, today, now.

Note: This function is supported only in free-flow scripting mode of Script Builder. 

Example

To find the number of days between today and a given date field, you can add the following code

days360(zoho.currentdate, input.date)

where,
zoho.currentdate is a Zoho variable that holds the current date
input.date is a date field in the form

Top