[Gambas-devel] DateAdd and DateDiff
Brought to you by:
gambas
From: Nigel G. <li...@ge...> - 2004-07-14 14:19:26
|
Benoit, A few weeks ago there was mention of the VB function DateAdd. Attached is an implementation for Gambas. DateDiff is also included. I'm not sure whether this is where you planned to go - I had a thought that maybe if all Datatypes were classes then we could have implemented this type of functionality as a method. e.g. myDate AS DATE mydate = Date myDate.Add(period, interval) But I could be talking rubbish :-) Nigel |