Hi Kurt,
I guess calSelect1.Sele ctedDate.DayOfW eek.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(stri ng strDataType)
{
string retVal=strDataT ype;
int nPos = retVal.IndexOf( ",");
if (nPos != -1)
retVal = retVal.Substrin g(0,nPos);
return retVal;
}
Call it in your .cs as follows
string DayName = getDayName(myCa lendar.Selected Date.ToLongDate String());
But i m sure that
string Dayname2 = myCalendar.Sele ctedDate.DayOfW eek.ToString();
thing should work for you rather than calling the function i mentioned use
inbuilt framework features
Hope this helps you
Thanks
IntelYogi(Yoges h)
"Kurt Schroeder" wrote:
Hi,
quick question: this, calSelect1.Sele ctedDate.DayOfW eek, 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