Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2004
    Posts
    38

    Unanswered: Change Display Date Format with SQL Statement?

    Hi,

    I would like to display date data like "MM/YY" instead of "DD/MM/YYYY". Is this possible to do this with SQL statement?
    I'm using MySQL 5.0+ZeosLib+BCB6.0

    Thanks in advance.

    Analyzer

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    you need to use a function called, surprisingly enough, DATE_FORMAT()
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •