Hi Kurt,
I guess calSelect1.SelectedDate.DayOfWeek.ToString() should return you
"Sunday" and "Monday"
Probably it should work for you if not u can incorporate this function
in your code
private string getDayName(string strDataType)
{
string retVal=strDataType;
int nPos = retVal.IndexOf(",");
if (nPos != -1)
retVal = retVal.Substring(0,nPos);
return retVal;
}
Call it in your .cs as follows
string DayName = getDayName(myCalendar.SelectedDate.ToLongDateStrin g());
But i m sure that
string Dayname2 = myCalendar.SelectedDate.DayOfWeek.ToString();
thing should work for you rather than calling the function i mentioned use
inbuilt framework features
Hope this helps you
Thanks
IntelYogi(Yogesh)
"Kurt Schroeder" wrote:
Hi,
quick question: this, calSelect1.SelectedDate.DayOfWeek, will return the
numeric day ofthe week for a given calander called calSelect1. is there a
function or method that can give me the text value for day of the week? so
that 0 returns sunday, 1 monday, ...?
thanks
kes