Forum Xamarin.Android

sqlLite datetime field ?

ChristopheBERNARDChristopheBERNARD BEMember ✭✭✭✭✭

Hello all,

i have a problem when i try to get the value of a field datetime locate in sqLite ...
everytime i receive 01/01/0001 ....

my table is formatted as this


public DateTime CreationDate { get; set; }

when i open the sqllite database i can see the correct datetime
but when i try to get the value with this query

List<MyObject> list = db.Table<MyObject>().Where().ToList();

every time the field datetime is impossible to read ...

any idea ?

thanks for your time ...



Sign In or Register to comment.