Which is the best datatype to be used for creating a datetime field like in MysQL ?
i wanna store in this format YYYYMMDD HHMMSS
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
there is no DATE format in SQLite3, so you should store your date time in string. Format should just reflect your need. If you don’t want to store time, DDMMYYYY will be enough.
Just format the date before saving and parse the string when reading from db.