Results 1 to 6 of 6

Thread: DTPicker

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2001
    Location
    Belgium
    Posts
    13

    DTPicker

    I use a DTPicker to perform a date into my programm, however if I p.e put the control on my form on the 16 june 2001 the value of the DTPicker stay's always by opening the form on that date, even whe are 3 months later.
    Instate of clicking the DTPicker and go on for a few months it shut given me the at least the current date.
    How to achieve this ????

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    VB Code:
    1. DTPicker1.Value = Date

    could u use that?
    -= a peet post =-

  3. #3
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Brooklyn NY USA
    Posts
    1,258
    Check the Value in properties, If it has a date Erase it and it will default to todays date.

  4. #4
    melginger
    Guest
    What I do is

    DtPicker.value=Now

    to always have the current date

  5. #5

    Thread Starter
    New Member
    Join Date
    Mar 2001
    Location
    Belgium
    Posts
    13

    DtPicker

    Thanks, I think I forgot to put the number of instance after the DTPicker.
    Greetings from Belgium

  6. #6
    Member gvphubli's Avatar
    Join Date
    May 2001
    Location
    INDIA
    Posts
    48
    Hey try this

    dtpOne.value = format(date,"dd-mmm-yyyy")

    this will set it to the date like 23-Apr-2001

    dtpOne.VAlue = format(time,"HH:mm")

    this will set the value of dtp to time in hrs and minutes like 14:30
    Cracky - = DBA / Developer = -
    visit : http://www.geocities.com/gvphubli/

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