Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: OCCI - Timestamp
t wrote:
> Hi
>
> I am trying to use OCI from Oracle XE
>
> when using toText with precision to minutes and secunds program breaks
>
> however when I am using only 'YYYY-MM-DD HH24' - format everything is OK
>
>
>
> string date1;
> Timestamp ts1;
> ts1.fromText("2000-02-29 11:10:10", "YYYY-MM-DD HH24:MI:SS", "", env);
> // date1 = ts1.toText ("YYYY-MM-DD HH24:MI:SS", 0, ""); <----
> dasn't work !!!!!
> date1 = ts1.toText ("YYYY-MM-DD HH24", 0, "");
>
>
> I am using VC++ .NET Oracle Expressedition OCI (Oracla C interface)
>
> thanks for help
>
> t.
>
>
>
When you say it does not work, what exactly happens? Do you get some
error message? What error message do you see? Are you sure you are using
VC++7.1?
-km Received on Mon Aug 28 2006 - 23:00:46 CDT
![]() |
![]() |