Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3354

Re: function module to convert date format from yyyymmdd to mmddyyyy format

$
0
0

Satish Panakala wrote:

 

Hi Rajitha,

 

Do like this

 

Data: Var1 type sy-datum,         var2(8) type c.

var1 = sy-datum.

Concatanate var1+4(2) var1+6(2) var1+0(4) into var2.

write var2.

 

Reward Points if this helps,

 

Satish

 

 

OMG, this solution is SO wrong. Date formatting depends on the country, the calendar and the user's preferences! THIS only works for a few countries in the world! I can't believe, that Satish gots reward points for this bad solution.....

 

CONVERT_DATE_TO_EXTERNAL works better, which you can see after setting your date formatting preferences in your User Settings!


Viewing all articles
Browse latest Browse all 3354

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>