Please help with displaying selected date on calendar in asp.net
-
Hi all, i am setting the selected value of a calander like this...
calendarDateOfBirth.SelectedDate = Convert.ToDateTime(_member.DateOfBirth)
how do you make the calander display this selected date now??? i know the date is correct but i dont know how to display it on the calander? I can write the value to the database and it works fine with the correct value i just dont know how to display it... please help Thank you in advance."Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
-
Hi all, i am setting the selected value of a calander like this...
calendarDateOfBirth.SelectedDate = Convert.ToDateTime(_member.DateOfBirth)
how do you make the calander display this selected date now??? i know the date is correct but i dont know how to display it on the calander? I can write the value to the database and it works fine with the correct value i just dont know how to display it... please help Thank you in advance."Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
How do you want to display it ? What calendar control are you using ? Why doesn't the SelectedDate property solve your problem ? Is Convert.ToDateTime working ?
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
How do you want to display it ? What calendar control are you using ? Why doesn't the SelectedDate property solve your problem ? Is Convert.ToDateTime working ?
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
i think the convert is working... the thing is...
calDateOfBirth.SelectedDate = Convert.ToDateTime(_member.DateOfBirth.ToString());
the date is set correctly on the calender... i can click on the previouse month arrow up to the correct month and see the selected date (as the correct date). When the page is loaded it is displaying the today date not the selected date? how do you specify to show the selected date on the calender itself like it is showing the current date???"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
-
How do you want to display it ? What calendar control are you using ? Why doesn't the SelectedDate property solve your problem ? Is Convert.ToDateTime working ?
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
ha ha, never mind... i figured it out... right after this section of code:
calDateOfBirth.SelectedDate = Convert.ToDateTime(_member.DateOfBirth.ToString());code> i have added this: `calDateOfBirth.VisibleDate = calDateOfBirth.SelectedDate;` it is working fine now :-) Thank you for your time any way.
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
-
Hi all, i am setting the selected value of a calander like this...
calendarDateOfBirth.SelectedDate = Convert.ToDateTime(_member.DateOfBirth)
how do you make the calander display this selected date now??? i know the date is correct but i dont know how to display it on the calander? I can write the value to the database and it works fine with the correct value i just dont know how to display it... please help Thank you in advance."Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison