[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 188
  • Last Modified:

DateTime Picker?

How can I set the current/default for this to be today's date and current time?
0
Tammak1
Asked:
Tammak1
  • 2
1 Solution
 
Wayne Taylor (webtubbs)AstronautCommented:
DateTimePicker1.Value = Date.Now
0
 
Tammak1Author Commented:
and if I wanted to make it today's date but at 11:59 PM?
0
 
Wayne Taylor (webtubbs)AstronautCommented:
DateTimePicker1.Value = Date.Today.Add(New TimeSpan(23, 59, 0))
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now