Subject | Re: [firebird-support] Re: Insert Dates |
---|---|
Author | Milan Babuskov |
Post date | 2004-05-14T19:08:07Z |
donjules2k wrote:
and time. AFAIK, date should always be first.
HTH
--
Milan Babuskov
http://fbexport.sourceforge.net
> I have decided to go with usein "dd-MMM-yyyy" as that seems to alwaysAll formats work perfectly if you use them properly.
> work perfectly.
> What is the best format for entering a time? (Both onHH:MM:SS in both cases. When entering timestamp put a space between date
> it's own and as part of a date, hence Timestamp)
and time. AFAIK, date should always be first.
>>dates. You can choose between dd.mm.yyyy, mm/dd/yyyy, dd-mmm-yyyy (IIIRC, you can also use yyyy-mm-dd format.
>>more formats. Or you can use a parameterWhich is the best way to do it.
>>INSERT INTO MY_TABLE (DATEFIELD) VALUES(:MyDate);
>>and assign it using whatever date format is defined at the client
>>(using parameters the date is passed, not a string).
HTH
--
Milan Babuskov
http://fbexport.sourceforge.net