On Sun, 25 Feb 2007, Pieter Valentijn wrote:

> :-0 
> Is it?
> I never know.
> I think it should come from the system locale.

It should, yes.

> In that case this routine still works.

Normally, yes.

> I gess the hardest part is the MM-DD-YYYY against DD-MM-YYYY.
> I have seen that theres anly 3 combinations posible in Delphi. 
> DD-MM-YYYY
> MM-DD-YYYY
> And
> YYYY-MM-DD
> 
> Where - is anny date seperator.
> 
> I tried once to set it to something like DD-YYYY-MM.
> In Windows this worked(display time etc) but Delphi StrToDate choked on
> it.
> 
> Now I know no one will use this format it was just for me to see what
> format was used.
> As in a Terminal server enviroment the defaul settings of the system
> sometimes was set in a user session (I still don't know why) and as the
> server is usaly English and the masks are all in Dutch this happened
> sometimes. When we where still deling with The bde and oracle this error
> made the date insert of oracle go wrong and it inserted absurd dates. I
> logged a call at Oracle complaining about the strange data insert. They
> said it was not there problem. They don't check the dates for validity.

Sounds like sqlite which also doesn't check validity of the data you feed
it. Nice going for a multi-billion-dollar company. :-)

Michael.

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to