Hi,
Has anyone had a problem with trying to store a timestamp in the InstantDB?
Basically, what I'm experiencing is that the database chops off all time
information and only stores the date.
This is what I've been doing to date. (simplified)
Date d = new Date();
db.RunSQL( " INSERT INTO table1 ( myDateField) VALUES ('" + d.toGMTString +
"')");
The GMT format is coming in as: 20 Oct 2000 19:07:36 GMT
But when I display the records in the table, I get the follow output:
2000-10-20
I've tried using the DATETIME, the DATE, and the TIME field types to no
avail.
Any ideas would be greatly appreciated.
Thanks,
David McTavish
-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.
|