dateadd()

benjamin.weizmann

Registered User.
Local time
Today, 06:35
Joined
Aug 30, 2016
Messages
78
hi :)
I just want to clear it

Does the function dateadd "understand" fractions ?
for example: I need to write DateAdd("yyy", 0.5, curredate1) as DateAdd("m", 6, curredate1) or the first pattern is ok?

thanks u

Ben
 
No - from MS help; "If number isn't a Long value, it is rounded to the nearest whole number before being evaluated."

Use the specific values for months in your example.
 
Dateadd only accepts whole number, thatbis the wholepart is only recognized.
 

Users who are viewing this thread

Back
Top Bottom