Results 1 to 4 of 4

Thread: (SOLVED) Fix Time In DTPicker....

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2005
    Location
    Tijuana,Mexico
    Posts
    109

    Resolved (SOLVED) Fix Time In DTPicker....

    Hi, A simple question...

    I need to search something in a Access DB, for that I'm using 2 DTPickers (DT1 & DT2) to setup a date range where I can search the information.

    So what I want to know is if there is a way to fix the time of the DTPickers in order to always have the DT1 @ 12:00:00 AM and DT2 @ 23:59:59

    (Actually I'm using the Hour, Minute, Second properties to change the value everytime I use the DTPickers but I don't now if there is a way to fix it without changing values everytime)...
    Last edited by G-Hawk; Oct 9th, 2006 at 12:13 PM. Reason: Solved

  2. #2

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2005
    Location
    Tijuana,Mexico
    Posts
    109

    Re: Fix Time In DTPicker....

    Thanks again RhinoBull....

  4. #4
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Fix Time In DTPicker....

    The default time (if you dont specify any) is 12:00:00 AM. I usually just add a day to the ToDate, so it becomes 1 second later than I want. (Since we aren't open at midnight, this doesn't cause any problems, but I suppose you could add 86,399 seconds instead of 1 day.)
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

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