CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2001
    Location
    Medellín - Antioquia,Colombia - SurAmerica
    Posts
    86

    Time DateTimePicker Vlaue

    Hello Everyone...

    I am working with DTPicker in (so so)Time mode..

    I need to pass the Time value to String or Text...
    But the control is passing Date & Time...

    I am working 24Hours format and have format in dtpCustom
    I setting Format in this manner: HH:mm:ss

    but, it not works like I want...

    dtpTime format... nothing (shows 12 time format)

    I need only Time value!!!

    Thank's ...


    [email protected]

    Please Response to:[email protected]
    http://www.bigfoot.com/~joseluisbz

  2. #2
    Join Date
    Jul 2001
    Location
    India
    Posts
    55

    Re: Time DateTimePicker Vlaue

    use format function to format the value received from the DatePicker eg

    Dim time as date
    time = DTPicker1.Value 'time= 6/7/01 01:15:00
    Format(time, "HH:mm:ss") 'time= 01:15:00




    Neeraj Sharma
    Beehive Systems Ltd.
    NOIDA, INDIA
    [email protected]

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

Featured