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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:15:47+00:00 2026-05-26T08:15:47+00:00

While implementing web applications on top of MySQL database, I’m thinking if it is

  • 0

While implementing web applications on top of MySQL database, I’m thinking if it is a good idea to just use string data type to store dates?

For example, I can just store dates as ‘201110191503999’ into database. Also this is convenient to query by date. For example, select * from some_table where the_date like ‘20111019%’

Is there any performance issue if we use string for dates? and are there any advantages for using date/datetime data type?

Thanks in advance!

  • 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-26T08:15:48+00:00Added an answer on May 26, 2026 at 8:15 am

    Always use the column type for what what is needed; if you are using a date, use DATETIME, if it is a timestamp, use TIMESTAMP and so on.

    Depending on in what you are coding, all the formatting of the data can be done on the actual page in whatever language you are using.

    Also, you can take advantage of MySQL functions such as NOW(), rather than using the language’s version and then storing it into the database.

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

Sidebar

Related Questions

I'm writing a web site (C#, ASP 3.5) while implementing a simple CMS. In
I wanted to know, while deciding which language or technology to use for implementing
While implementing a design using nested generic collections, I stumbled across those limitations apparently
While implementing XML file reading/writing in my application I saw that when I call
I am implementing a sound effect that plays while a user is dragging a
Quick question regarding Automapper. I'm mapping data from an incoming web service, where datetimes
I've been developing Microsoft Windows based applications (both desktop and web) for several years
I am implementing a web based chat platform in ASP.NET Web Application, and I
While implementing the in-app billing for Android application, I came across a problem. Let
I'm implementing a manager in my web app that can be called to set

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.