dayOfYear Method

Class: Date

Description

This method returns the day within the year of the Date object. That is, it returns the number of days since the beginning of the year for the specified date.

Syntax

dateObject.dayOfYear()

Parameters

None

Returns

The day within the year of the Date object.

When Became Available

Profile v7.0

Example

type RecordCIF cif = Db.getRecord("CIF","ACN=:ACN")

type Date date = cif.dob          // declare Date object

type Number DAYOFYR = date.dayOfYear()

 

* Variable ACN must be defined prior to the getRecord statement.