The best method to save dates to a Valentina DB so that regional settings don't bother them?

Ruslan Zasukhin sunshine at public.kherson.ua
Wed Nov 26 16:46:13 CST 2003


on 11/26/03 4:30 PM, Marcus Bointon at marcus at synchromedia.co.uk wrote:

> on 26/11/03 3:34, Deane Venske at deane.venske at eduss.com wrote:
> 
>> WHat's the best way to save dates to Valentina? Would it be to make a
>> method that returns the current dateTime? Are there any examples out
>> there? I want to make sure I get this right, because I've always had
>> problems in the past no matter what DB/Programming language combination I
>> use.
> 
> Normal thing to do is stick to a fixed format internally and then format it
> with locale settings for display. I recommend the ISO date format of
> "YYYY-MM-DD" for good external compatibility, and it also happens to sort
> correctly as a string.

Yes, this is right, but better use not strings, but Vdate.

Internally this take LESS space than the same Date As String.

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