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: 

Date Manipulation Depending on the various user date settings

Former Member
0 Kudos

hi,

I have a query.

In scripts, user date format setting is YYYY.MM.DD, values stored the table MHND are also in the format YYYY.MM.DD.

However when i pass the date values from MHND from form to subroutine pool the dates are available in the format DD.MM.YYYY in the subpool.

I want to calculate the diffenece between two dates. I have checked the function modules to calculate the differece betweent 2 dates those acccepts dates with type YYYYMMDD.

However i tried to bring my dates in from YYYY.MM.DD into YYYYMMDD format by using CONVERT_DATE_INTERNAL function module... That is not working as the user date format is YYYY.MM.DD and the dates are coming in subpool in DD.MM.YYYY format....

Please suggest me the approach the relavant function modules.... so as to manipulate the dates based on the user date settings.

Looking forward for your replies. Thanks in advance.

Regards,

Anuja.

2 REPLIES 2

Former Member
0 Kudos

hi anuja,

Try using the following formatting script symbol in your form routine

For example, you are passing the date into the subroutine then put K after the date field like below.

&date(K)& .

or

use SET DATE MASK : YYYY:MM:DD

Thanks,

Vamshi

Former Member
0 Kudos

Thanks