Ask a Question related to ASP Database, Design and Development.
-
Oswaldo #1
Problem with insert dates in SQL
Hi, I have a table with a camp "Fecha" (it is datetime).I
insert a date in this format: dd/mm/yy (for example
01/11/2003) but in the table the insert value is 1/1/1900.
I insert the value using ASP code. What is the problem?
Thanks and regards.
Oswaldo Guest
-
Data Connection Wizard... problem with dates?
Hi, I don't know if there is some trick to this, but I'm just starting to experiment with data integration in Flash MX 2004 Pro 7.2. I'm using... -
Problem with insert dates
Hi, I have a problem on my CFMX 6.1 server. When I try to insert a date in a access DB it insert not the right date but the right date less one... -
Problem with dates
Has anyone gotten this to work using just SQL hooked to a simple MS Access datasource? -
Problem with insert
I have the following code in an ASP page that is processing a form to create a new user. I keep getting the following error Microsoft JET... -
can't insert dates in SQL Server 2000
Perhaps that's because what you're actually converting is 31 divided by 7 divided by 2003 instead of the string '31/07/2003'. Ray at home --... -
Aaron Bertrand - MVP #2
Re: Problem with insert dates in SQL
(1) Is that January 11th, or November 1st? I have no idea, and don't expect
your software to guess right either. Use an ISO standard date format, e.g.
2003-11-01 for Access, 20031101 for SQL Server.
(2) Make sure you are delimiting your dates correctly (sounds like you are
passing in 1/11/2003 directly, which is 1 divided by 11 divided by 2003, a
very small number indeed). For SQL Server, use
INSERT table(dateColumn) VALUES('20031101')
For Access, use
INSERT table(dateColumn) VALUES(#2003-11-01#)
In the future, please show the exact code you are using, and specify the
database and version. It makes it much easier to spot the problem and
suggest solutions.
--
Aaron Bertrand
SQL Server MVP
[url]http://www.aspfaq.com/[/url]
"Oswaldo" <jmendieta@comercio.com.pe> wrote in message
news:021f01c3b075$c6d25080$a501280a@phx.gbl...> Hi, I have a table with a camp "Fecha" (it is datetime).I
> insert a date in this format: dd/mm/yy (for example
> 01/11/2003) but in the table the insert value is 1/1/1900.
> I insert the value using ASP code. What is the problem?
>
> Thanks and regards.
Aaron Bertrand - MVP Guest



Reply With Quote

