Results 1 to 2 of 2

Thread: Date Selection

  1. #1
    Join Date
    Oct 2005
    Posts
    58

    Unanswered: Date Selection

    I want to select a date from a datetime type column.

    When I use:

    Select ExpireDate from myTable Where ExpireDate > 2005-10-12

    ...I don't get the correct dates

    When I use:

    Select ExpireDate from myTable Where ExpireDate > '2005-10-12'

    ...(with the apostrophe, it works correctly. Is there a way this will work correctly without the apostrophies?

  2. #2
    Join Date
    Feb 2005
    Posts
    78
    2005-10-12 = 1983 without the single quotes i.e. they are numbers with subtraction signs between them. So sometime in the process you have to use quotes.

Posting Permissions

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