SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2008
    Posts
    84
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ORDER BY date column in SQL

    Hi,

    I'm using ASP to select a bunch of records from a table in my MS Access table.

    I'm wanting to display them in ascending order by date added.
    I'm currently using ORDER BY date_start ASC

    I'm storing the date with the date field type using #23-02-2010# hash symbols on either side and in the dd-mm-yyyy format

    How do I order this so it uses the date column correctly?


    Thank you

  2. #2
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,247
    Mentioned
    59 Post(s)
    Tagged
    3 Thread(s)
    if the field type is DATE and if it accepts the date values that you insert into it, then your ORDER BY clause is correct
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"


Bookmarks

Posting Permissions

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