V4RB and dates

Ruslan Zasukhin sunshine at public.kherson.ua
Sun Feb 8 14:53:37 CST 2004


on 2/8/04 2:09 AM, Cindy Brown at cindy at kowhaiprogramming.com wrote:

Hi Cindy,

> I have recently set up a new database with about three date fields. I am
> running OS X and my system date formats are set to Australian (d/m/y) as I
> live in New Zealand. In a previous program I had written, dates are stored
> and retrieved with no problems. In the new database, when I save a date
> higher than the 15th, Valentina stores the date 16 days previously. For
> example, if I put a date in as 17/12/03, the date is stored as 1/12/03. I
> know it is only happening when it is saved as when I bring up a message box
> just after I set the datestring showing what is in the text box and what is
> in the saved field, they are both different.
> 
> Vtransactions.field("Date").SetString (datefield.text)
> MsgBox datefield.txt + "   " + vtransactions.field("Date").GetString
> 
> This should bring up the same thing but is not when the date is higher than
> the 15th.
> 
> Is there any reason for this and any way I can stop it from happening?

Please check 

    db.DateFormat

Property. May be you have wrong value?

-- 
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