I dont get it,
I create a table with:
and is created ok, then I assume the date field type exists
now Im trying to save a date and no matter the format it always gets saved wrong
I tryed with yyyy-MM-dd and yyyy-dd-MM:
and its always geting saved as 1989-12-30 and so on
How can I do it??
Thanks
I create a table with:
B4X:
CREATE TABLE [results] ( SqliteDate DATE );
and is created ok, then I assume the date field type exists
now Im trying to save a date and no matter the format it always gets saved wrong
I tryed with yyyy-MM-dd and yyyy-dd-MM:
B4X:
Dim MyDate As String
MyDate= DateTime.GetYear(DateTime.Now)&"-"&DateTime.GetMonth(DateTime.Now)&"-"&DateTime.GetDayOfMonth(DateTime.Now)
SQL1.ExecNonQuery("INSERT Or REPLACE INTO results VALUES ('"&MyDate&"')
and its always geting saved as 1989-12-30 and so on
How can I do it??
Thanks