Class: Date
Description
This method returns the number of days remaining until the end of the year of the Date object, excluding the current date. Therefore, the value for December 31st of every year will be 0.
Syntax
dateObject.daysToEOY()
Parameters
None
Returns
The number of days remaining until the end of 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 DAYSPAST = date.dayOfYear()
type Number DAYSREMN = date.daysToEOY()
if DAYSPAST > DAYSREMN write "second half of the year!"
* Variable ACN must be defined prior to the getRecord statement.