Class: Date
Description
This method returns the formatted day (two digits) of a specified Date object. Because the value may include a leading zero, the type of the return is String. If you need the day as a Number, use the dayOfMonth method.
Syntax
dateObject.day()
Parameters
None
Returns
A String containing the two-digit day value of a date.
When Became Available
Profile v6.4
Example
type RecordCIF cif = Db.getRecord("CIF","ACN=:ACN")
type Date date = cif.dob // declare Date object
type String DAY = date.day() // always 2 digits!
// DAY is String, following numeric compare will ALWAYS fail
if DAY=7 write "You have won the lottery !!"
* Variable ACN must be defined prior to the getRecord statement.