Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi

 

Using the DateTimePicker in VB, how do i get the selected date and put it in a textbox? Also, is there a similar thing like that except you select the time instead of date (similar to windows - where you select or change time in date/time properties).

 

 

Thanks in advance. :)

  • *Experts*
Posted

You can use the Value property of the DateTimePicker to get the selected date/time.

TextBox1.Text = DateTimePicker1.Value().ToString()

If you want the user to be able to select time, find the format proeprty of the DateTimePicker and set it to time.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...