4D v16.3

Day of

Home

 
4D v16.3
Day of

Day of 


 

Day of ( date ) -> Function result 
Parameter Type   Description
date  Date in Date for which to return the day
Function result  Longint in Day of the month of date

The Day of command returns the day of the month of aDate.

Note: Day of returns a value between 1 and 31. To get the day of the week for a date, use the command Day number.

The following example illustrates the use of Day of. The results are assigned to the variable vResult. The comments describe what is put in vResult:

 vResult:=Day of(!12/25/92!) ` vResult gets 25
 vResult:=Day of(Current date` vResult gets day of current date

See the example for the Current date command.



See also 

Day number
Month of
Year of

 
PROPERTIES 

Product: 4D
Theme: Date and Time
Number: 23

This command can be run in preemptive processes

 
HISTORY 

Created: < 4D v6

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)