Subject | Re: [firebird-support] Different separators for date and time |
---|---|
Author | Magnus Titho |
Post date | 2005-06-10T09:52:39Z |
Salvatore Besso wrote:
which every FB-server accepts.
If the FB-server uses some local settings you don't know, you'll be in
serious troubles...
Btw, a valid date-format is also yyyy-mm-dd
with, convert it to a date and then write it to the database using one
of Firebird's date-formats. Or use a query with parameters.
> I was wondering if it could be considered a bug the fact that FirebirdNo, because as an application-developer you have to rely on a format
> accepts only "/" and "." as date and time separators. I verified this only
> now when an error was submitted to me by a user that was trying to insert a
> row with a date in the format "mm.dd.yyyy". This happened because that user
> has set "." instead of "/" as date separator in his Windows installation.
>
> Shouldn't FB handle different date and time separators like Windows does?
which every FB-server accepts.
If the FB-server uses some local settings you don't know, you'll be in
serious troubles...
Btw, a valid date-format is also yyyy-mm-dd
> P.S.: The error occurred in a Delphi application using FB 1.5.2 embedded andSeperate GUI from Database. Accept data in a format the user is familiar
> IBO 4.5Ai. If this is the correct behaviour of FB, I will change the date
> and time separators when the application starts and I will restore them at
> application shutdown.
with, convert it to a date and then write it to the database using one
of Firebird's date-formats. Or use a query with parameters.
> RegardsMagnus
> Salvatore