[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Date plus integer
[Thread Prev] | [Thread Next]
- Subject: Re: Date plus integer
- From: Bruce Steers <bsteers4@xxxxxxxxx>
- Date: Wed, 17 Apr 2024 16:09:36 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On Wed, 17 Apr 2024 at 15:56, Gianluigi <gradobag@xxxxxxxxxxx> wrote: > Hi Benoit, > > until version 3.18.4 if you added an integer to a date it returned a date. > Now it returns a number: Print Now() + 1 ' <--- 2492523,6124732 > Is this a bug? No it's just bad coding results ;) (hehe only joking) Print CDate(Now + 1) that works as you are actually asking for a date object just using "Now + 1" makes the interpreter do a calculation/sum that returns a float. Respects BruceS
Re: Date plus integer | Gianluigi <gradobag@xxxxxxxxxxx> |
Date plus integer | Gianluigi <gradobag@xxxxxxxxxxx> |