943,724 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 1043
  • VB.NET RSS
Feb 5th, 2009
0

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

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 1
Light Poster
Bill Purkins is offline Offline
42 posts
since Jul 2008
Feb 5th, 2009
1

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

There's a DateTime constructor that takes year, month, day, hour, minute, second.
Team Colleague
Reputation Points: 1135
Solved Threads: 171
Super Senior Demiposter
Rashakil Fol is offline Offline
2,478 posts
since Jun 2005
Feb 5th, 2009
0

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

Thank you so much. I will try it.

Regards,
Bill P.
Reputation Points: 10
Solved Threads: 1
Light Poster
Bill Purkins is offline Offline
42 posts
since Jul 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: Search value by textbox from .mdb file
Next Thread in VB.NET Forum Timeline: storing values in arrays fom inputbox?





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


Follow us on Twitter


© 2011 DaniWeb® LLC