Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8449377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:41:19+00:00 2026-06-10T10:41:19+00:00

How to store date and time in an SQLite database with Phonegap? I tried

  • 0

How to store date and time in an SQLite database with Phonegap? I tried to use Datatype as “NUMERIC” and insert query with DATETIME(‘now’). But I got an error: “DBConnect Error processing sql:undefined”.

What is the best way to store date and time in SQLite database using Phonegap? Also I need to sort by date and time in this table.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T10:41:21+00:00Added an answer on June 10, 2026 at 10:41 am

    datetime-columns should be created as varchar(40)
    (and not numeric like in e.g. Access)

    internal representation is 2012-08-31 hh:mm:ss.

    So Select * from x ORDER BY dt DESC would be newest first

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using SQLITE database and I store the date as a String. Now
How to store current date and time in Sqlite using PhoneGap? tx.executeSql(CREATE TABLE IF
I have stored a variable in database(sqlite) with datetime data type. Now I want
I am using a couple variables that store DateTime.Now for both database and web
In my app i need to save the time in sqlite Database. for insert
Which one: datetime datetime2 is the recommended way to store date and time in
i'm new to java. now i have a question: how to store a date/time
I have a DataMapper based SQLite database. I store the time at which the
following How to store date/time and timestamps in UTC time zone with JPA and
How to store date and time in different variable from this type of date

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.