Skip to Content
0
Former Member
May 11, 2009 at 09:33 AM

Date Manipulation Depending on the various user date settings

27 Views

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.