in

System.Data.SQLite

An open source ADO.NET provider for the SQLite database engine

DataReader can not read DateTime data that was imported with strftime

Last post 03-07-2009 11:59 AM by silversens. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-07-2009 10:18 AM

    DataReader can not read DateTime data that was imported with strftime

     Hi,

     I'm a newbee with SQLite and its ADO.Net provider. I'm using 1.0.60 ADO.Net Provider and SQLite 3.6.11 (but I also tried with 3.6.3 and its the same result)

    I just did migrate the Northwind database to sqlite and I was making some tests.
    Unfortunately I'm encountering some problems with DateTime objects. I did insert all my dates with SQLite strftime function just to be sure, I would be in a standard case, butI get an Invalid DateTime format exception when I try to read them.

    Here's a link to my table definition and the way I did insert data into it : http://pastebin.com/f19a7c2d
    and here's the query I'm running : "select * from Orders"

    I just wanna know what did I do wrong or what could I do to be able to read those dates without modifying the DB.

    Please help

  • 03-07-2009 11:59 AM In reply to

    Re: DataReader can not read DateTime data that was imported with strftime

     As I said, I'm a newbee : Forget about it !

    I just realised strftime does not work well on windows. Thanks anyway

Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems