2009 Feb 05 8:04 PM
How can I convert date in logon date formate.
2009 Feb 05 8:06 PM
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
2009 Feb 06 1:35 AM
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
2009 Feb 06 5:58 AM
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
2009 Feb 06 6:03 AM
2009 Feb 06 6:13 AM
Hi,
Try with this function module CONVERT_DATE_TO_INTERN_FORMAT.
Regards,
Rajani
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |