x++ - 在 Dynamics AX 中获取系统日期和当前日期的功能是什么?

标签 x++ axapta

在 Microsoft Dynamics AX 中使用 X++ 获取系统日期和当前日期的函数调用是什么?

最佳答案

使用类中的静态方法 DateTimeUtil :

  • getSystemDateTime
  • utcNow

  • 两者都返回 UTC 日期和时间,但会在显示时转换为本地时间。

    Best Practice .

    关于x++ - 在 Dynamics AX 中获取系统日期和当前日期的功能是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4379523/

    相关文章:

    axapta - 如何确认来自 EP AX 2012 的当前请求

    axapta - 根据用户输入启用/禁用向导的 FINISH 按钮

    dynamics-ax-2009 - 添加 Outer Join DataSource 时的表单性能

    axapta - 从代码在 DirPartyTable 上创建记录?

    axapta - 单击 Dynamics AX 中的标签后是否可以打开 Web 浏览器?

    axapta - 如何在 Axapta 中的两个表单之间传递参数?

    batch-processing - 使用批处理作业运行 Web 服务时出现问题?

    axapta - 一次上传多个文件

    axapta - 如何检查新行是否已创建但尚未保存