Click to See Complete Forum and Search --> : Time DateTimePicker Vlaue


joseluisbz
July 5th, 2001, 08:01 PM
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 ...


joseluisbz@bigfoot.com

NeerajSharma
July 6th, 2001, 12:15 AM
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
neeraj@beesys.com