How can i get below mentions date format in c#.
For 1-Nov-2010 it should be display as : 1st November
For 30-Nov-2010 it should be display a
I'm pretty sure there's no datatime routine to show the date as 1st or 30th.
I recently wrote some code like that from scratch. I think you'll need to do the same.
I don't have my code handy but I just created a string array with the letters for each number ("th", "st", "nd", "rd", "th", etc.). Then mod against 10 and use the remainder as an index into the array. You can just append that string to your number.