Welcome Guest Search | Active Topics | Sign In | Register

Regarding DatePicker Value Options
Chalasani
Posted: Sunday, January 6, 2008 8:33:16 PM
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
eo_support
Posted: Monday, January 7, 2008 5:26:09 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,088
Hi,

You should remove the toString part. SelectedDate takes a DateTime, not String.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.