Given a date value, this custom function returns the day of the week as a string. The day name is retrieved from the language file.
Arguments (Min - Max): 1 - 1
Usage
DayOfWeek(x)
- x is a Date or DateTime value
Code
DateTime date = DateTime.Parse(args[0].ToString()); int day = (int)date.DayOfWeek + 1; return sessionInfo.PageInfo.LanguageDict.GetInfo("CalendarDayOfWeek" + day).Html;