cancel
Showing results for 
Search instead for 
Did you mean: 

date requirement in Smartform

Former Member
0 Kudos

hi all,

i am working on smartforms, i have a requirement like date format.

cureently date displayed in the layout as : DD.MM.YYYY

but i need to display as : YYYY.MM.DD

how can do this : is there any system varible or command or function module.

please reply me soon.

thanks

munvar basha.

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member196280
Active Contributor
0 Kudos

Create program lines in your smartform and write the following code...

EX,

date = '01122007' . " DD.MM.YYYY

date10(4) = date4(4).

date14(2) = date2(2).

date16(2) = date0(2).

now date1 will have 20071201 "YYYY.MM.DD

clear date.

date = date1.

display date...

close the thread once your question is answered.

Regards,

SaiRam

Former Member
0 Kudos
Former Member
0 Kudos

Hi Basha,

You can use this code ,

year = date+6(4).

month = date+3(2).

day = date+0(2).

concatenate year month day into date separated by '.'.