|
This function returns the count number for a chosen date. 0 is defined for 1900-01-01. This value is incremented for every additional day. |
||||||
![]() |
"day_nr" is mainly used to determine the difference between two dates (in days). | ||||||
Syntax: |
|||||||
{INT_VAR}= day_nr({DAT_EXPR}) | |||||||
I/O parameters:
|
|||||||
Return value: |
|||||||
|
|||||||
Example: |
|||||||
Declaration of Variables | |||||||
10 DOCU_INT_1 = day_nr(date()) 20 DOCU_INT_2 = day_nr("2000-01-01 11:49:38") 20 put(DOCU_INT_2 - DOCU_INT_1) |
|||||||
Result: (date() provides the current date: 1999-08-10 11:53:27) |
|||||||
![]() |
Functions and commands: Date and Time |