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