I can not believe that no one has answered your problem yet (I am assuming VB
.NET). I am used to the Wrox chat groups being much faster than this?
On the page load sub routine, just put this in:
Dim dt As DateTime = DateTime.Now
Dim format As [String] = "yyyy/MM/dd"
Dim strDate As [String] = dt.ToString(format)
MyCalendar.SelectedDate = strDate
I was interested in your subject, because this is exactly why I came here, I tried to get the C# example to work, but I am getting an error on the:
MyCalendar.SelectedDate = strDate;
line. It says that it can not convert a string to date. So I tried a date, still did not work.
Hopefully someone can help????