Application Development and Automation 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: 
Read only

Date Converstion Function module

Former Member
0 Likes
493

Hi,

Is there any Function Module to convert Date. I want to convert YYYYMMDD to DD/MM/YYYY. ??

Thnak you

hemanth

3 REPLIES 3
Read only

vinod_vemuru2
Active Contributor
0 Likes
457

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.

Read only

Former Member
0 Likes
457

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/2010

Cheerz

Ram

Read only

Former Member
0 Likes
457

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.