Changing time in datetimepicker

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: May 2009
Posts: 40
Reputation: lolwtf is an unknown quantity at this point 
Solved Threads: 0
lolwtf lolwtf is offline Offline
Light Poster

Changing time in datetimepicker

 
0
  #1
Nov 4th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,721
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 501
Moderator
adatapost's Avatar
adatapost adatapost is offline Offline
Posting Maven
 
0
  #2
Nov 5th, 2009
Try it,
  1. DateTimePicker1.Value = DateTimePicker1.Value.AddMinutes(1)
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the VB.NET Forum


Views: 286 | Replies: 1
Thread Tools Search this Thread



Tag cloud for VB.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC