DATETOTALDAYS
PROGRAM DATETOTALDAYS_DEMO
VAR
D1: DATE;
LR1:LREAL;
END_VAR
LR1 := DATETOTALDAYS(IN1 := D1);
END_PROGRAM
Returns number of days since the beginning of our era (since 1.1. 0000) for a particular date.
Input | Type | Description |
---|---|---|
IN1 | ANY_DATE | Input value |
Output | Type | Description |
---|---|---|
=> | LREAL | Output value |
This function is used where the number of days between two dates has to be calculated.