Parse and format SQLite dates and times
