date format

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Telma
    New Member
    • Apr 2010
    • 1

    date format

    I have a date "2008/10/10" in sql but when I retrieve that in dataset i get it as "10/10/2008 12:00:00 AM". Can anyone explain how this happens and how to avoid it. The database has only "date" as its field type
  • MrMancunian
    Recognized Expert Contributor
    • Jul 2008
    • 569

    #2
    In the dataset, what type is the date-field? If it is datetime it will automatically add "12:00:00 AM". You could change it to Date instead.

    Steven

    Comment

    • tlhintoq
      Recognized Expert Specialist
      • Mar 2008
      • 3532

      #3
      Why do you need to avoid it? You entered a date of 10 october 2008 and you got back a date of 10 october 2008. The date wasn't corrupted, so what's the problem?

      Comment

      Working...