Day function

Official Content
This documentation is valid for:

To extract the number that indicates the day in a given date.

Syntax

Day(date-expression | datetime-expression)

Type Returned:
Numeric N(2)

If the received parameter is null, the value returned is 0.

Example

A Company wants to implement the following discount policy: All debts paid before the 21st of every month will have a 15% discount.

If day(PaymentDate) < 21
   &Discount = Total * 0.15
else
   &Discount = 0
EndIf

Scope

Objects    Procedure object, Transaction object, Web Panel object

See also

TimeZone Support - General Considerations
Day method
Month function
Year function





Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.