Results 1 to 2 of 2

Thread: oracle - compare date

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2005
    Posts
    15

    Question oracle - compare date

    hi, help needed!

    i'm doing a vb.net project!
    i use MS Access as my database at the beginning.
    so i use:-
    CDate(valid_date) < # " & DateTime.Now.ToString("dd/MM/yyyy") & "#
    to get some record that the valid_date is < than today date!
    it work well when using MS Access.
    (NOTE: data type for valid_date is in VARCHAR)

    but when my move my database to Oracle.
    it has a problem!
    i cannot use the CDate function.

    so any help can be provided regarding compare the date when database is store in Oracle!


    regards;
    charlotte

  2. #2
    Hyperactive Member The_Duck's Avatar
    Join Date
    May 2005
    Location
    Leamington, UK
    Posts
    351

    Re: oracle - compare date

    Try To_Date(<string>, <format>)


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