cancel
Showing results for 
Search instead for 
Did you mean: 

Date Format in Smarform

Former Member
0 Kudos

Hi all ,

I have a requirement where i require my date in output in the format like September 26th (th in superscript) input date is like 20080926(like sy-datum format).

I have managed to change it to September 26 , 2008 But that "th" superscript is what i am unable to get plz help me out , as super script depend upon the on the day of the date.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Some logic....

Only you need to check the last digit of the date ...

If ends with 1 then 'st'...

ends with 2 then 'nd'....

ends with 3 then 'rd'...

all others will be 'th'....

Regards,

Ram

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Check out fot the fonts available in SO10 .

If not you need to create a new customized font so as to use it for the letters to appear as superscript.

Regards,

Ram

hymavathi_oruganti
Active Contributor
0 Kudos

Hi,

I think the logic suggested by Ram is good.

Regards,

Hyma

Former Member
0 Kudos

Hi,

One more thing...

special cases being '11' , '12 , '13'....

Regards,

Ram

Former Member
0 Kudos

ye i do understand that but my problem is to make 'nd', 'th' look like superscript .....small in size the way it looks like 26th th in small above the numeral ....like it looks in ms word