If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > insert date problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-25-05, 07:34
marconi8 marconi8 is offline
Registered User
 
Join Date: May 2003
Posts: 50
insert date problem

database:
Firebird Last release

problem:
When i insert date value into date field, then firebird change day.value with month.value. For example if i insert date value in format (dd/mm/yyyy) = 10/01/2005 , Firebirds inserts this value like 01/10/2005


all my date value are in format dd/mm/yyyy

when i insert date value using this query,

insert into TABLE_NAME(FIELD_NAME), values('10/01/2005')

then Firebird inserts this value like mm/dd/yyyy

result is:
Day = 01
Month = 10
Year = 2005

----------------

when i insert date value using this query,

insert into TABLE_NAME(FIELD_NAME), values('10.01.2005')

then Firebird inserts this value like mm/dd/yyyy
result is:

Day = 10
Month = 01
Year = 2005
Reply With Quote
  #2 (permalink)  
Old 01-25-05, 07:44
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
try this --

insert into TABLE_NAME(FIELD_NAME), values('2005-01-10')
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On