Results 1 to 7 of 7

Thread: toughest general question ever(date/time picker)!

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2004
    Location
    philippines
    Posts
    245

    toughest general question ever(date/time picker)!

    i am using MS ACCESS as my database and a date/time picker. the problem is if the value of the date/time picker is at 12:00:00 the it returns only the date.
    i.e
    if the value of btpTo is 01/01/2004 12:00:00 am it only retuns 01/01/2004 which is the date. the problem is i nee to get the exact date/time. any one has an idea on this?! hehehe





    to be clear.

    my database has:

    fieldname: mydt
    data type: date/time format: general date

    my code in VB:



    VB Code:
    1. rs.open "select * from myDB where id = 1",cn,1,1
    2. rs.addnew
    3. rs!mydt = "12/12/2004 12:00:00 am"
    4. rs.update

    result when saved into dbase.

    mydt(fieldname)
    12/12/2004



    time is missing! it should be 12/12/2004 12:00:00 am
    Last edited by titan7262; Feb 4th, 2004 at 04:15 AM.

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