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 6037877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:08:15+00:00 2026-05-23T06:08:15+00:00

I am using SQLite database for my application. The Table Structure Goes Like :

  • 0

I am using SQLite database for my application.

The Table Structure Goes Like :

_id  : integer primary key
name : text
day  : date

I am able to store date in format : dd-mmmmm-yyyy eg. 15-June-2011

But when i tried to retrieve all records filtered by date from the database it returns me null.

database.query(DATABASE_TABLE, new String[] { "strftime('%d-%mm-%Y',date('now'))","strftime('%d-%m-%Y',"+KEY_DAY+")" },
"strftime('%d-%m-%Y',date('now'))=" + KEY_DAY , null,null,null,null,null);

It didnt match with anyrow’s date even though there were some matching dates.

I have already gone thru documentation of SQLite. But didn find any solution yet.

I want to have something like :

 select * from table where day=curdate();

How can i do the same task in SQLite ?.
(Yes I am flexible to change the format of date stored in Dateabase)

What are other alternatives for the same task ?.

  • 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-05-23T06:08:16+00:00Added an answer on May 23, 2026 at 6:08 am

    In java programming you can convert any date format into long (time in milliseconds) and viceversa. My opinion is while storing format the date into long format in java and then store long value of date in database. also while retrieving you can retrieve the long value and then format that as per your expected date format. I have been using this type of logic for several application.

    Thanks
    Deepak.

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

Sidebar

Related Questions

I'm transitioning an application from using a normal SQLite database to one with full
I am using Android 2.1 SDK, the application reads from the Sqlite database, a
I am using the SQLite database and have the following persistent class (simplified): public
I have a database file that is generated on a PC using Sqlite. This
I am using sqlite with python. When i insert into table A i need
I am using SQLite in a Java application through Zentus . In this context
I'm using SQLite in an Android application. In all of my tables I have
I've just started using SQLite and I want to write all my application data
I am developing windows mobile application. I have added the SQLite database file in
Currently I have an application that takes information from a SQLite database and puts

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.