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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T14:20:49+00:00 2026-05-21T14:20:49+00:00

say for example I have the following piece of code with which I retrieve

  • 0

say for example I have the following piece of code with which I retrieve the date from the database

        DateLabel.text = [CommonHelper getDateString:objSample.startDate :@"MM/dd/yyyy"];

where

i) objSample is an object of my Sample entity

ii) startDate is an attribute in the Sample entity declared as @property (nonatomic, retain) NSDate * startDate;

iii)CommonHelper is another file where I have the getDateString: function as below,

+ (NSString *) getDateString:  (NSDate *) date: (NSString *) format
  {
    NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
    [dateFormat setDateFormat:format]; 
    NSString *dateStr = [dateFormat stringFromDate:date];
    [dateFormat release];
    return dateStr;
   }

Using Sqlite Database Browser, if I enter the value as “04/23/1999” to the Sample’s startDate attribute , the value which is displayed in DateLabel.text is a totally different value and if I enter a value such as “76851234”, the value which is displayed in DateLabel.text is “05/23/2001”.

Since I am new in dealing with database, I am unable to understand why this happens…
Would someone be able to tell me why this happens? and is there a way I can directly enter the date into the database using SQLite Database Browser so that that date is displayed?

is the format of the date I enter into the SQLite database browser a “Unix Date Format”? if so, how would I be able to convert the date into unix date format so that I know for certain what would be the exact date I would be displaying on my app…

  • 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-21T14:20:50+00:00Added an answer on May 21, 2026 at 2:20 pm

    The answer for this is that you can’t.

    SQLite is “typeless“. This means that you can store any kind of data you want in any column of any table, regardless of the declared datatype of that column. http://www.sqlite.org/datatypes.html

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

Sidebar

Related Questions

Say I have the following code: <div onclick='location.href=http://www.example.com/'> <a href='#' onclick='alert(blah)'>click</a> </div> Is there
Say suppose I have the following Java code. public class Example { public static
Say you have the following piece of code: function someProcess() { var deferred =
Say for example I have the following code: <h3>My very long title</h3> <h3>Another long
Say for example I have the following string: var testString = Hello, world; And
Say for example, I have the following two tables: TableA { _id } TableB
I have 2 websites, lets say - example.com and example1.com example.com has a database
Let's say I have a database filled with people with the following data elements:
Lets say for example I have the following 2 vectors: *B *A The vector
I have a very specific deserialization need, see example below: say I have following

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.