Results 1 to 2 of 2
  1. #1
    Right Off the Assembly Line
    Join Date
    Aug 2008
    Posts
    1

    Default Problem comparing date in MS Access and c# query

    Reply
    Quote
    Vote
    Edit
    akshaycjoshi - Posted a few seconds ago

    Hi,
    I am developing one application which requires me to compare date.The dataabse being MS access 2003.
    When i execute the query in c# it does not show any record ,the date although matches with the date in database.
    Where is the problem ?

    The quey executed is

    select * from finetable where fine_date=#1/9/2008 6:46:36 PM#

    The record which matches it being

    serial_no fine_date reg_no fine_place fine_code driver_name fine_officer vehicle_type book_info fine_amount
    3 1/9/2008 6:44:55 PM sdfsd sdfdsfds d dsfsdf fsdfsdf Hero Puch dfsdf dsfds


    Why it is not showing ??
    Maybe coz the time is diff. But I want to compare dates only.

    Please help me !

  2. #2
    Rubik's Uncle!! RCuber's Avatar
    Join Date
    Sep 2004
    Location
    ಬೆಂಗಳೂರು (Bengaluru)
    Posts
    5,863

    Default Re: Problem comparing date in MS Access and c# query

    Please post some code which you wrote.. Also specify the exact data type of the date column in the database.
    the cake is a lie
    621311.251521

Similar Threads

  1. Query in MS Access
    By AHHNPANTH in forum QnA (read only)
    Replies: 1
    Last Post: 07-03-2009, 12:53 AM
  2. Problem With system date !!!
    By skghosh44 in forum Software Q&A
    Replies: 16
    Last Post: 05-09-2007, 11:26 PM
  3. Mozilla Firefox new Add-ons Site with a date problem
    By Anup Nair in forum Technology News
    Replies: 1
    Last Post: 25-03-2007, 10:51 PM
  4. problem with system date in FC4
    By legolas in forum Open Source
    Replies: 6
    Last Post: 02-03-2006, 02:59 PM
  5. MS ACCESS & Query
    By un in forum QnA (read only)
    Replies: 4
    Last Post: 15-09-2005, 10:05 PM

Bookmarks

Posting Permissions

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