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

How to display date in a datepicker

100+
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


QVeen72
Expert 100+
P: 1,445
Hi,

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

debasisdas
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.