Results 1 to 2 of 2

Thread: Dates

  1. #1
    Join Date
    Jan 2005
    Posts
    362

    Unanswered: Dates

    I want to make a simple question.
    I want to query the count of the records at a table for a month (mm/yyyy), how i have to "format" the date for this ?
    Thanks
    dimis

  2. #2
    Join Date
    Feb 2004
    Location
    One Flump in One Place
    Posts
    14,912
    Hi

    You can either use a range in your where clause (WHERE MyDate BETWEEN 1st day of month and Last day of month) or you can use some functions (probably a little slower - WHERE Year(MyDate) = TheYearIWantToCheck AND Month(MyDate) = TheMonthIWantToCheck)

    HTH
    Testimonial:
    pootle flump
    ur codings are working excelent.

Posting Permissions

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