using System; using IwbZero.Expr; using IwbZero.ToolCommon.StringModel; namespace IwbZero.ExprFunctions.Functions { /// /// 获取日期(月) /// public class FunGetMonth:IIwbFunction { public string Invoke(ExprObject exprObj) { int month = DateTime.Now.Month; if (exprObj.ChildCount > 0) { month = exprObj.GetChild(0).Expr.StrToDt().Month; } return month.ToString(); } } }