DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Visual Basic 4 / 5 / 6 (http://www.daniweb.com/forums/forum4.html)
-   -   Date Picker Problem (http://www.daniweb.com/forums/thread145200.html)

pardeep3dec Sep 11th, 2008 3:35 am
Date Picker Problem
 
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 ?

gopi17 Sep 11th, 2008 4:40 am
Re: Date Picker Problem
 
Quote:

Originally Posted by pardeep3dec (Post 688835)
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....

K.Vanlalliana Sep 11th, 2008 1:05 pm
Re: Date Picker Problem
 
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.


All times are GMT -4. The time now is 5:49 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC