Tag Archives: 3rd

Convert dates into an ordinal format (as in August 20th, 2020) in C#

This example shows how you can Convert dates into an ordinal format as in August 20th, 2020. The example Convert an integer into an ordinal (1st, 2nd, 3rd) in C# explains how to find the ordinal extension for an integer. … Continue reading

Posted in parsing, strings | Tagged , , , , , , , , , , , , , , , | Leave a comment

Convert an integer into an ordinal (1st, 2nd, 3rd) in C#

This example uses the following int extension method to convert an integer into an ordinal. The method returns an integer’s ordinal suffix, as in “rd” fo rthe value i1103, so you can make 1103rd or 1,103rd. // Return the int’s … Continue reading

Posted in parsing, strings | Tagged , , , , , , , , , , , , , , | 1 Comment