I have a string 14-Sep-2011 In need to convert this 14th Sept. This date may be any date string. Is there any date formatter which allows me to convert date in my format. As if date is 1-Sept-2011 then I need 1st Sept, 2-Sept-2011 should say 2nd Sept.
Can anyone please suggest the solution.
Thanks
Test:
use it
You try the following code because I run successfully.
This is a perfect solution that you want.
This will work for any number :
Test :