944,218 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 1177
  • VB.NET RSS
Nov 4th, 2009
0

Changing time in datetimepicker

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
lolwtf is offline Offline
41 posts
since May 2009
Nov 5th, 2009
0
Re: Changing time in datetimepicker
Try it,
VB.NET Syntax (Toggle Plain Text)
  1. DateTimePicker1.Value = DateTimePicker1.Value.AddMinutes(1)
Moderator
Reputation Points: 2136
Solved Threads: 1228
Posting Genius
adatapost is offline Offline
6,527 posts
since Oct 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Help with array
Next Thread in VB.NET Forum Timeline: CPU Usage





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC