Hello,

I am trying to verify what day of the year has been selected from the calendar extender in asp.net.

I know that in vb.net for example I would verify if the day selected is after the 121st day of the year, the syntax would be:


Code:
 If DateTimePickerCheckIn.Value.DayOfYear >= 121
Then some code...

It seems that value is not accepted after the declaration of the calendar extender.

I'm also trying to figure out how to know if the day is Friday.

For example, in VB.NET, the syntax would be :

Code:
checkInDate.Value.DayOfWeek = DayOfWeek.Friday
It seems I can not find any documentation on this subject.

Thank you in advance!

Marie