DATA: ultimo TYPE d.
"
服务器当前日期
ultimo      = sy-datum.
WRITE: / ultimo .
"
当前月的第一天可以采用字符偏移操作
ultimo+
6(2) = '01'.          " = first day of this month
WRITE: / ultimo .
"
上月最后一天
ultimo      = ultimo -
1.    " = last day of last month
WRITE: / ultimo .

20110716

20110701

20110630

 

日期运算是以天为单位,时间运算以秒为单位。

相关文章:

  • 2022-12-23
  • 2021-10-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2022-02-08
  • 2021-08-12
猜你喜欢
  • 2022-12-23
  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-09
相关资源
相似解决方案