Skip to main content
Skip table of contents

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:
d,t - day of the month
D,T - day of the year
W - week of the year
w - day of the week
m - month
y,j year

Result:

Integer

Date count

Examples:

Value = f$Dateval('21.06.2004','W')

Result: value = 26

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.