date Time Picker

  • Thread starter Thread starter El Camino
  • Start date Start date
E

El Camino

i have 2 date time picker in a form

in arrTime(0) i have the time (hh:mm:ss)
in arrTime(1) i have the date as (dd/mm/yyyy)

im trying to set the two time picker with these values

How can i do that?

Thanx
 
Try

---------------
dtp.Value = Date.Parse(cstr(arrTime(1)) & " " & cstr(arrTime(0)))
---------------

It's a quick and dirty way and there's probably a more efficient way of
doing this, but hope it helps anyway.

Trev.
 
* "El Camino said:
i have 2 date time picker in a form

in arrTime(0) i have the time (hh:mm:ss)
in arrTime(1) i have the date as (dd/mm/yyyy)

Convert them to 'DateTime's using 'CDate', 'DateTime.Parse' or
'DateTime.ParseExact' and...
im trying to set the two time picker with these values

.... assign the values to the datetimepickers' 'Value' properties.
 
Back
Top