BaseObject method date comparison

Ruslan Zasukhin sunshine at public.kherson.ua
Sat Mar 20 00:23:50 CST 2004


On 3/19/04 11:51 PM, "Tim Davis" <timdavis at amug.org> wrote:

> Hi,
> 
>   I'd like to create a baseobject method which compares today's date
> to a date column and determines whether the record's date is from a
> previous month from today's month, with boolean (1 or 0) result.

> Example: for today March & April would be 0 and Jan, Feb and prior
> would return a 1. Is this possible?

Hi Tim,

I think yes. You need study data functions.

As Today date you will need have additional BaseObject method,
To which you need assign today date.

In Valentina 2.0 we have add function "now()" for this.

And for above task you will need use function "month()"


-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list