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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top