Creator Help

getDayOfYear

This topic describes the syntax and usage of the getDayOfYear function in Zoho Creator .

Description

The getDayOfYear function return a number in the range 1-365, representing the number of the day of the year that date falls.

Syntax

<date>.getDayOfYear()

(or)

getDayOfYear(date)

// this format is supported only in the free flow scripting mode of Script builder.

The getDayOfYear function syntax has the following arguments.

date  - The date based on which the number of the day is returnedThe date can be a date or date-time field, the "today" variable which returns the current day, or results of other date functions, for example, datevalue()

Example

a.If Transaction date is Aug 21, 2013, the getDayOfYear() function returns 233.

   TransactionDate.getDayOfYear(); 
   getDayOfYear(TransactionDate); 

Top