f$Dateval (f$DatumsWert)
f$Dateval (f$DatumsWert)
Calculate the number of days, calendar weeks, months or years for a given date.
If the date is invalid, -9999 is returned as the result.
Syntax: | Value = f$Dateval(Date,What) | ||
| Argument | Type | Meaning |
| Date | String | Given date |
| What | String | Entry of the part of the date to be returned: |
Result: | Integer | Date count | |
Examples: | Value = f$Dateval('21.06.2004','W') Result: value = 26 | ||