DateTime field - How do I assign a time other than current?

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

Join Date: Jul 2008
Posts: 42
Reputation: Bill Purkins is an unknown quantity at this point 
Solved Threads: 1
Bill Purkins Bill Purkins is offline Offline
Light Poster

DateTime field - How do I assign a time other than current?

 
0
  #1
Feb 5th, 2009
I have a datetimepicker field with properties format set to time. I can find no reference anywhere on how to set the value of the time. i.e. today at 5 pm. it either defaults to 12:00:00 or I can set it to Now. But anything else? Can't figure out how. Any help is appreciated.
Thanks,
Bill P.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 2,052
Reputation: Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice 
Solved Threads: 139
Team Colleague
Rashakil Fol's Avatar
Rashakil Fol Rashakil Fol is online now Online
Super Senior Demiposter

Re: DateTime field - How do I assign a time other than current?

 
1
  #2
Feb 5th, 2009
There's a DateTime constructor that takes year, month, day, hour, minute, second.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 42
Reputation: Bill Purkins is an unknown quantity at this point 
Solved Threads: 1
Bill Purkins Bill Purkins is offline Offline
Light Poster

Re: DateTime field - How do I assign a time other than current?

 
0
  #3
Feb 5th, 2009
Thank you so much. I will try it.

Regards,
Bill P.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC