Rank: Newbie Groups: Member
Joined: 1/6/2008 Posts: 3
|
Hi,
Thanks for your early response. I am able to assign the date.today to the date picker with your given suggestion. The Problem is when I want to assign some date value which I will fecth from SQL SERVER Database Table using the following syntax but it is not accepting the date which is present in the database field. It is showing 01/01/2008.
datepicker1.selecteddate = CDate(EmpDT.Rows(EmpDT.Rows.Count - 1)("EntryDate")).ToString("dd-MM-yyyy")
With Regards, Krishna Chalasani
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
You should remove the toString part. SelectedDate takes a DateTime, not String.
Thanks
|