Results 1 to 2 of 2

Thread: Dates

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2003
    Posts
    89

    Exclamation Dates

    Hello,

    I was wondering if there's a way to include zero's in a date when I'm running a search on the database. Supposedly "what if" there were zeros in front of a single digit date like 01/01/2001 or 09/22/1922. The search I'm doing is not recognizing 01/01/2001 as a date, it only recognizes dates that are like: 1/1/2002



    Any code suggestions to allow the search to include 0's?


    Chris

  2. #2
    Only Slightly Obsessive jemidiah's Avatar
    Join Date
    Apr 2002
    Posts
    2,431
    I'm assuming that it's stored as a string and not as an actual date (it would then do a numerical comparison and, thus, pass). If so, you might want to look into the FormatDateTime or simply Format functions. They should get you what you want.
    The time you enjoy wasting is not wasted time.
    Bertrand Russell

    <- Remember to rate posts you find helpful.

Posting Permissions

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



Click Here to Expand Forum to Full Width