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 in logon format.

Former Member
0 Likes
909

How can I convert date in logon date formate.

How can I convert date in logon date formate.

5 REPLIES 5
Read only

Former Member
0 Likes
879

data : w_date(10) type c,

w_date1 like sy-datum.

w_date1 = sy-datum.

write w_date1 to w_date.

write W_date.

hope the example above gives you a clear idea

Regards,

Siddarth

Read only

Former Member
0 Likes
879

hi...

you can use function module

convert_date_internal for internal format and /SAPDII/SPP05_CONVERT_DATE for user log on format

regards

Edited by: Mohit Kumar on Feb 6, 2009 2:39 AM

Read only

Former Member
0 Likes
879

Hello Abaper,

The user language can be changed in user admin of WAS. Click on Modify icon after listing and selecting the user.

To do regional settings on users machine is always tough as the customers do not want to do that on user machines.

1) You have to create a local dictionary type in your project of type date. In the Enumeration Tab hard code the format you want. With this the restriction is that you will have date in only one format and user if want to change the format they have to change the code.

2) Set the date format programatically.

SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy");
String datString= "20040131";
try{
java.util.Date parsedDate = df.parse(datString);
}
catch (ParseException ex){
}

Courtesy: Zahackson

Read only

Former Member
0 Likes
879

Use FM CONVERT_DATE_TO_INTERNAL

Read only

Former Member
0 Likes
879

Hi,

Try with this function module CONVERT_DATE_TO_INTERN_FORMAT.

Regards,

Rajani