Windows Develop Bookmark and Share   
 index > Windows Forms Designer > want to show date from Datetime picker
 

want to show date from Datetime picker

Hi,

I want user to select a date from a Datetime Picker control. This is eaily done by using this control. Now i want to enter this  selected date into a database.

Till now i didn't found any method through which i can get the selected date. How can i do this. Please help

Regards,
Ghazala
MigrationUser 1  Friday, May 07, 2004 1:39 PM
DateTime ToSaveIntoDatabase = yourDateTimePicker.Value;
MigrationUser 1  Monday, May 24, 2004 9:59 PM
If you are using databinding then bind to the text property of the control

Keep in mind there are some big issues with the date time picker when it comes to nulls.

MigrationUser 1  Friday, July 02, 2004 11:57 AM

You can use google to search for other answers

Custom Search

More Threads

• UserControl Modifiers Property Default Value ???
• How to serialize a previously untyped DataSet that has been modified by another Component in Design time?
• Nested InstanceDescriptors
• Calls to the set and get methods of a property
• Referencing Label Objects
• ContextMenuStrip.items designer
• Outlook Address Card View
• Displaymember by valuemember
• Building a Designer
• Suppress components to be shown in toolbox