Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Date Format as dd/mm/yyyy

Date Format as dd/mm/yyyy

Scheduled Pinned Locked Moved Database
helpquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fahiemulleh
    wrote on last edited by
    #1

    Hi all, I am stuck with problem while using mysql5.0. I am using it with visualstudio2005. It doesn't allow me to store date as dd/mm/yyyy. I need to store it in this format. Kindly suggest me How it will be done? Thanks for your consideration.

    R E C 3 Replies Last reply
    0
    • F fahiemulleh

      Hi all, I am stuck with problem while using mysql5.0. I am using it with visualstudio2005. It doesn't allow me to store date as dd/mm/yyyy. I need to store it in this format. Kindly suggest me How it will be done? Thanks for your consideration.

      R Offline
      R Offline
      Rob Graham
      wrote on last edited by
      #2

      I answered this in the C# forum where you cross-posted. Posting the same question to multiple forums is generally regarded as rude.

      1 Reply Last reply
      0
      • F fahiemulleh

        Hi all, I am stuck with problem while using mysql5.0. I am using it with visualstudio2005. It doesn't allow me to store date as dd/mm/yyyy. I need to store it in this format. Kindly suggest me How it will be done? Thanks for your consideration.

        E Offline
        E Offline
        Eric Dahlvang
        wrote on last edited by
        #3

        It depends upon what libraries you are using to connect to MySQL. But, for the most part, you need to know that when you save your date you need to format it yyyy-mm-dd. See Handling Date and Time Information in Connector/NET[^] MySQL and the .NET languages handle date and time information differently, with MySQL allowing dates that cannot be represented by a .NET data type, such as '0000-00-00 00:00:00'. These differences can cause problems if not properly handled.

        --EricDV Sig--------- Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peters

        1 Reply Last reply
        0
        • F fahiemulleh

          Hi all, I am stuck with problem while using mysql5.0. I am using it with visualstudio2005. It doesn't allow me to store date as dd/mm/yyyy. I need to store it in this format. Kindly suggest me How it will be done? Thanks for your consideration.

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          I don't know MySQL but as a general rule databases should not be culture specific. That is the job of the GUI for your application. If MySQL supports it you should use the ISO date format yyyy-mm-dd as it is culture neutral. When you retrieve data from the database you can then format it for the culture it is to be used in. Or, when you save data to the database it should be stored in a culture neutral format.


          Upcoming Scottish Developers events: * UK Security Evangelists On Tour (2nd November, Edinburgh) * Developer Day Scotland: are you interested in speaking or attending? My: Website | Blog

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups