Hi friends,
I took a date picker control on form but it is not showing current date.
Is there any way except this datepicker1.value=date ?

Recommended Answers

All 2 Replies

Hi friends,
I took a date picker control on form but it is not showing current date.
Is there any way except this datepicker1.value=date ?

try this

datepicker1.value = date.now()....
i think its should work....

datepicker1.value = date.now().... is not enough if you expect to display date as you wish. I need to use format command so as to display date as you wish. The syntax to display date as 22-May-2008 is:

Format(Now,"dd-mmm-yyyy")

Other problem can happened if your system date is not correct, if so, correct the system date and you may need to replace the system battery also if you are using old Computer.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.