| | |
Changing time in datetimepicker
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: May 2009
Posts: 40
Reputation:
Solved Threads: 0
I have 2 datetimepickers on my form, and I use them to pass parameters to my sql queries for reporting purposes. You would use them to pick a date range and display clock in times for employees. Anyway, I need an option so users can see information from a single day(24 hour timespan) My first Idea was to let the user change the date on the first datetimepicker then changing the time to 12:00 AM then the second datetimepicker to 11:59 PM. I want to be able to do this programmatically, but I couldnt figure out how to change the time. I feel so stupid please give me some advice.
0
#2 Nov 5th, 2009
Try it,
VB.NET Syntax (Toggle Plain Text)
DateTimePicker1.Value = DateTimePicker1.Value.AddMinutes(1)
![]() |
Similar Threads
- Changing Time format (Pascal and Delphi)
- some help needed..changing of time format from 12hour format to 24hour format (Perl)
- Computer time is fast (OS X)
- bridge.dll changing start pages (Viruses, Spyware and other Nasties)
Other Threads in the VB.NET Forum
- Previous Thread: Help with array
- Next Thread: CPU Usage
Views: 286 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
.net .net2005 30minutes 2005 2008 access account application arithmetic array arrays basic binary bing button buttons c# center check code combobox component connectionstring convert crystalreport data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dll dropdownlist excel file-dialog folder ftp google hardcopy highlighting image images inline insert listview login mobile ms net networking output passingparameters peertopeervideostreaming picturebox picturebox1 plugin port print printing problem problemwithinstallation project reports" save savedialog searchbox serial server soap sorting sql string syntax table tcp text textbox timer toolbox trim update updown usercontrol vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web wpf






