| 123456789101112131415161718192021222324 |
- using System;
- using IwbZero.Expr;
- using IwbZero.ToolCommon.StringModel;
- namespace IwbZero.ExprFunctions.Functions
- {
- /// <summary>
- /// 获取日期(日)
- /// </summary>
- public class FunGetDay:IIwbFunction
- {
-
-
- public string Invoke(ExprObject exprObj)
- {
- int day = DateTime.Now.Day;
- if (exprObj.ChildCount > 0)
- {
- day = exprObj.GetChild(0).Expr.StrToDt().Day;
- }
- return day.ToString();
- }
- }
- }
|