05-11-2009 10:33 AM
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.
05-11-2009 10:45 AM
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
08-12-2009 11:12 AM