Re: Oracle and asp.....still cannot figure this out.
Turkbear wrote:[color=blue]
> On 19 Jun 2006 05:26:43 -0700, clinttoris@hotm ail.com wrote:
>[color=green]
> >[/color]
>[color=green]
> >
> >
> >
> >Hmmm, I'm confused on the last statement made only because I have
> >specified both date and time and it is still only submitting date.
> >Here is the code
> >
> >to_char('" & Now() & "','dd/mm/yyyy hh24:mi:ss PM') Any other ideas?[/color]
>
> Please post the actual output from
> Response.Write( ssqlCheckBox )...
>
> And from
>
> Response.Write( Now())
>
> You maty have to assign the output of the Now() function to a variable an duse that in the concatenation:
>
> Dim cdandt = Now();
> to_date('" & cdandt & "','dd/mm/yyyy hh24:mi:ss PM') ( Remember : To_Date when INSERTING, To_Char when retreiving..)[/color]
Hello Turkbear,
yes I did assign a variable and I read from the variable and it has not
been working. Here is what you requested.
Here is the output of Response.Write( ssqlCheckBox )...
INSERT INTO
Survey_User_Ans wer(Survey_Id,Q uestion_Id,Answ er_Id,Date_Answ er) VALUES
(1,'1', 'b', to_date('19/06/2006 11:33:06 AM','dd/mm/yyyy hh:mi:ss
PM'))
And here is the output of Response.Write( Curdate)
19/06/2006 11:34:32 AM
here is my syntax
CurDate= Now()
ssqlCheckBox = "INSERT INTO
Survey_User_Ans wer(Survey_Id,Q uestion_Id,Answ er_Id,Date_Answ er,
user_Id) VALUES (" & SurveyID & ",'" & objRS("Question _Id") & "', '" &
answerChoices(a nswerChoice) & "', to_date('" & Now() & "','dd/mm/yyyy
hh:mi:ss PM'), " & user & ")"
Turkbear wrote:[color=blue]
> On 19 Jun 2006 05:26:43 -0700, clinttoris@hotm ail.com wrote:
>[color=green]
> >[/color]
>[color=green]
> >
> >
> >
> >Hmmm, I'm confused on the last statement made only because I have
> >specified both date and time and it is still only submitting date.
> >Here is the code
> >
> >to_char('" & Now() & "','dd/mm/yyyy hh24:mi:ss PM') Any other ideas?[/color]
>
> Please post the actual output from
> Response.Write( ssqlCheckBox )...
>
> And from
>
> Response.Write( Now())
>
> You maty have to assign the output of the Now() function to a variable an duse that in the concatenation:
>
> Dim cdandt = Now();
> to_date('" & cdandt & "','dd/mm/yyyy hh24:mi:ss PM') ( Remember : To_Date when INSERTING, To_Char when retreiving..)[/color]
Hello Turkbear,
yes I did assign a variable and I read from the variable and it has not
been working. Here is what you requested.
Here is the output of Response.Write( ssqlCheckBox )...
INSERT INTO
Survey_User_Ans wer(Survey_Id,Q uestion_Id,Answ er_Id,Date_Answ er) VALUES
(1,'1', 'b', to_date('19/06/2006 11:33:06 AM','dd/mm/yyyy hh:mi:ss
PM'))
And here is the output of Response.Write( Curdate)
19/06/2006 11:34:32 AM
here is my syntax
CurDate= Now()
ssqlCheckBox = "INSERT INTO
Survey_User_Ans wer(Survey_Id,Q uestion_Id,Answ er_Id,Date_Answ er,
user_Id) VALUES (" & SurveyID & ",'" & objRS("Question _Id") & "', '" &
answerChoices(a nswerChoice) & "', to_date('" & Now() & "','dd/mm/yyyy
hh:mi:ss PM'), " & user & ")"
Comment