Inserting date in sqlite db using adobe air and javascript -
I am trying to put a date value in sqlite db using air and javascript. Value is inserted, but when I try and see it, it says null.
Later I came to know that using the SQLite store Julian format. How to convert javascript date to julian format?
Adobe Air does not support JS date objects during inserting data I
stmt.parameters [": myDate"] = was using new date ();
It was putting a date in the database, but it was not returning back in a useful format. I tried the following and it worked like a charm.
stmt.parameters [": myDate"] = new window.time.ad ();
Comments
Post a Comment