‎2010 Apr 03 12:14 PM
Hi,
Is there any Function Module to convert Date. I want to convert YYYYMMDD to DD/MM/YYYY. ??
Thnak you
hemanth
‎2010 Apr 03 12:18 PM
Hi,
Please go through the forum rules and search the forum before posting. We have lot of questions related to this. FYI... questions related to date are not allowed. Lets join together and improve the quality of the content of SCN:-)
Thanks,
Vinod.
‎2010 Apr 03 12:22 PM
Hi Hemanth,
Search Before you Post, and Basic Date Questions are not allowed.
BTW : Vinod you are obsolutely correct, Lets join to improve the Quality of OUR OWN SDN
[Check this one For Diff Date Formats|http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP-FunctionmoduleforconvertinganyExternaldateformattoInternalformat]
data date type sy-datum.
date = '20100403'." and you want it 03/04/2010
data : str type string.
str = date.
"Now concatenate
concatentae str+6(2) "Date
'/'
str+4(2) " Month
'/'
str+0(4) " year
into str.
This will give you 03/04/2010Cheerz
Ram
‎2010 Apr 03 12:45 PM
Hi Vinod and Ram,
Thanks for your Replies, Sorry for breaking rules. Bu my scenario here is not a simple one. Date format will change from system to system. So, i cannot use Concatenate. Any am closing the thread.