on 09-05-2006 1:03 PM
hi
i want to write the system date in the format of dd.mm.yyyy.
rgds
ankit
Welcome to SDN.
Since you asked this question in BSP forum , i assume you wanted this in a BSP page.
write the following statement in the page layout
<%= page->to_string( value = sy-datum ) %>
this will print the date according to the user date format (set in usr02-datfm field)
if you want say only two digits of the year you can use the following
<%= page->to_string( value = sy-datum format = if_bsp_page~CO_FORMAT_SHORT ) %>
for more on this check out BSP application IT00 page basic_write.htm
Regards
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you use model binding system will format the date based on the user profile (SU01).
Sergio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.