【问题标题】:date time calculation that was 6 hours ago6 小时前的日期时间计算
【发布时间】:2011-09-14 20:40:26
【问题描述】:

我正在使用 Crystal XI,我想运行一个报告,其中承认日期在报告运行的最后 6 小时内。我不确定如何计算。

【问题讨论】:

    标签: datetime crystal-reports reporting crystal-reports-xi


    【解决方案1】:

    将以下内容添加到报告的记录选择公式中:

    //show all admission dates that have occurred more recently than 6 hours 
    //before the current date/time
    //replace {table.field} w/ correct value
    {table.field} >= DateAdd("h", -6, DataDate + DataTime)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-08
      • 1970-01-01
      • 1970-01-01
      • 2021-10-09
      相关资源
      最近更新 更多