Quantcast
Channel: default
Viewing all articles
Browse latest Browse all 10

Using a SQLite date/time field with Flutter and Dart

$
0
0
Using a SQLite date/time field with Flutter and Dart alvin September 14, 2019 - 1:29pm

As a brief note, SQLite doesn’t have date/time (datetime) fields, so when you want to use a datetime field with Flutter (and Dart), you have to do something else.

My choice was to store my datetime data as a SQLite INTEGER field. I did this so I can query and sort that field easily myself. (The benefit of storing a datetime field as a TEXT field is that you can read it easier, but I think an INTEGER field is a little easier to work with, though YMMV.)


Viewing all articles
Browse latest Browse all 10

Trending Articles