By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,775 Members | 1,399 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,775 IT Pros & Developers. It's quick & easy.

How to display date in a datepicker

P: 103
How to display current date in a datepicker where once we have loaded the datepicker onto form it shows current date,but after some days it shows only the date when it was loaded onto the form,please ny suggestions to get the current date always inspite of the date loaded being shown!!!
Jan 11 '08 #1
Share this Question
Share on Google+
2 Replies

Expert 100+
P: 1,445

Write this in Form_Load event:
Expand|Select|Wrap|Line Numbers
  1. DTPicker1.Value = Date
Jan 11 '08 #2

Expert 5K+
P: 8,127
You can also use

DTPicker1.Value = Now

and then change the format accoding to your requirment for date of any format or time.
Jan 11 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.