on 09-26-2008 12:57 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
One more thing...
special cases being '11' , '12 , '13'....
Regards,
Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.