using System; using IwbZero.Expr; using IwbZero.ToolCommon.StringModel; namespace IwbZero.ExprFunctions.Functions { /// /// 获取日期(周几) /// public class FunGetWeekDay:IIwbFunction { public string Invoke(ExprObject exprObj) { var dayOfWeek = DateTime.Now.DayOfWeek; if (exprObj.ChildCount > 0) { dayOfWeek = exprObj.GetChild(0).Expr.StrToDt().DayOfWeek; } return dayOfWeek.ToString(); } } }