View Single Post

   
  #1 (permalink)  
Old 04-08-2008, 11:13 AM
t
 
Posts: n/a
Default OCCI - Timestamp

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.



Reply With Quote