473,395 Members | 1,978 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Reading Date from Datetime picker control in C#.NET 2.0


Hi,

How to read selected date from Datetimepicker control in C#.NET2.0
Windows applications.

Thanks in advance



*** Sent via Developersdex http://www.developersdex.com ***
Dec 26 '06 #1
2 44543
Kondapanaidu wrote:
Hi,

How to read selected date from Datetimepicker control in C#.NET2.0
Windows applications.

Thanks in advance
Source:
http://msdn2.microsoft.com/en-us/lib...ker.value.aspx

Use the Value property
DateTime dateTime = datetimepicker.Value;

references are good:
--http://msdn2.microsoft.com/en-us/library/aa388745.aspx <--
Dec 26 '06 #2

hi

use this,

DateTime varDate;

varDate=dateTimePicker1.Value;
Use CustomFormat Property as dd/MM/yyyy and set Format property to
Custom if u want date/month/year format

Happy coding.

Regards
Ammu

Dec 26 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: TD | last post by:
This code doesn't work. Every posting I can find suggests that it should. If TypeOf controlname Is DTPicker then do something here End If I am using the Date Time Picker control and wish to...
1
by: Macca | last post by:
hi, I am looking to use the date/time picker control to allow the user to select a time. I have done a similar thing in a C++ project by formating the date time picker to show only the time...
1
by: venky | last post by:
Hi, Is there any good datetime picker control to use for asp.net pages? I want have a date field in my form to show, i want the behaviour like when u click the button next to text box, it shoud...
0
by: Hal | last post by:
How do you change the Background Color for a (collapsed) Date Time Picker control from the default white? (I can change every other color setting on this control like its background color when...
2
by: Darhl Thomason | last post by:
I'm converting my Access 2003 VBA app. I have a number of date fields in my db that I want to use the date/time picker control with, but if there is no entry in my database, I want the date/time...
2
by: eljainc | last post by:
Hello, I'm trying to change the background color of a DateTimePicker control. I tried changing the background, but only the calendar colors seem to be the only thing that can be changed as far...
2
by: Mike | last post by:
Hi to all, I'd like to set initial value to DateTimePicker Control programmatically, How I can do that? I had tried following: 1. DataTable dt = dataLayer.GetOffer(OfferID);...
1
by: manivelk | last post by:
Hi, i have one doubt.. How to get the DateTime picker control in C#.Net.. If any one knows the answer sent to me.. Thanks in advance.. Regards, Manivel. K
1
by: sonubaba | last post by:
hello, my question is, in my web application i need datetime picker control in which user can select both date and time from DateTime Picker control i could not find this anywhere on inter net ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.