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 option in layout

Former Member
0 Likes
779

Hi everybody,

In my layout i have displayed the expiry date as 08.2007 & i want that to be changed as 08/07.

Is there any possibility?

Thanks & Regards,

Varadharajan S

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
741

If u have

v_date = '082007'

then write like this.

write:/ v_date0(2) ,'/' , v_date4(2).

Hi everybody,

In my layout i have displayed the expiry date as 08.2007 & i want that to be changed as 08/07.

Is there any possibility?

Thanks & Regards,

Varadharajan S

4 REPLIES 4
Read only

Former Member
0 Likes
742

If u have

v_date = '082007'

then write like this.

write:/ v_date0(2) ,'/' , v_date4(2).

Read only

Former Member
0 Likes
741

HI

data: dat(7) type c.

dat = '08.2007'.

concatenate dat0(2) '/' dat3(4) into dat.

write dat.

regards

kishore

Read only

0 Likes
741

Hi,

Thanks to Srinivas,Hari & Renjith...

Ur answers were very helpful to me to solve the problem

Thanks & Regards,

Varadharajan S

Read only

Former Member
0 Likes
741

If you are looking for formatting date in a sapscript/smartform..use the control command SET DATE MASK

/: SET DATE MASK = 'date_mask'

try..

/: SET DATE MASK = 'MM/YY'.