Class: Date
Description
This method returns the day of the Date object as a Number (one or two digits). Use this method if you need the day part of a date in a numeric context.
Syntax
dateObject.dayOfMonth()
Parameters
None
Returns
The day value of a Julian date as a (canonic) Number.
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 DAY = date.dayOfMonth()
// DAY is a Number, so numeric compare is safe
if DAY=1 write "born on the first day of the month!"
* Variable ACN must be defined prior to the getRecord statement.