Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Getting the Date

Former Member
0 Kudos

Hi All,,

I need to get a date which is prior to 18 months from the current date. . if today date is 31/03/2009

I need to get a date of 18months older than current date..Can any body tell me how we can get this date..

Thanks in advance.

3 REPLIES 3

Former Member
0 Kudos

Hi,

[Search|https://wiki.sdn.sap.com/wiki/display/ABAP/FunctionModulerelatedonDate+calculations] the SCN you can find lot of threads for your question.

former_member156446
Active Contributor
0 Kudos

use fm : HR_99S_DATE_ADD_SUB_DURATION

*      CALL FUNCTION 'HR_99S_DATE_ADD_SUB_DURATION'
*        EXPORTING
*          im_date     = lv_ersda   " from date 
*          im_operator = '+'          " add or subtract
*          im_duration = t_duration " structure to add days/ months/ years
*        IMPORTING
*          ex_date     = lv_vfdat. "output date

Please search next time before you post a new question.

Former Member
0 Kudos

Asked and answered many times before. Please search.

Rob