CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2002
    Location
    Israel
    Posts
    396

    SQL how to search dates on strings fields?

    Hi,
    Lets say i have strings fields in my table and i they will represent dates.
    How can i search these dates so i can use the between and such search settings?
    Thanks

  2. #2
    Join Date
    Feb 2005
    Location
    Denmark
    Posts
    742

    Re: SQL how to search dates on strings fields?

    You can cast strings to dates:
    http://msdn.microsoft.com/en-us/libr...4(SQL.80).aspx

    Then you can use date operations and comparisons on them.

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

Featured