Application Development 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: 

formating the date and time in smartform

naveenvishal
Contributor
0 Kudos

how to reduce time from hh:mm:ss to hh:mm format and

date in dd.mm.yyyy to dd.mm.yy format....

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Dear u can use FM of customizing code also

data DD type string

data TT type string

CONCATENATE sy-datum+6(2) '.'

sy-datum+4(2) '.'

sy-datum(4) INTO DD. "todays date

CONCATENATE sy-uzeit(2) '.'

sy-uzeit+2(2) '.'

sy-uzeit+4(2) INTO TT. "Now Time

you can cutomize

Rewards if helpful

1 REPLY 1

Former Member
0 Kudos

Dear u can use FM of customizing code also

data DD type string

data TT type string

CONCATENATE sy-datum+6(2) '.'

sy-datum+4(2) '.'

sy-datum(4) INTO DD. "todays date

CONCATENATE sy-uzeit(2) '.'

sy-uzeit+2(2) '.'

sy-uzeit+4(2) INTO TT. "Now Time

you can cutomize

Rewards if helpful