Is there a way to format DateTime into the following String in C#?:
29JUN91
I cant find anything online that allows us to write the month in short string form.
Is there a way to format DateTime into the following String in C#?:
29JUN91
I cant find anything online that allows us to write the month in short string form.
Try to use ToString("ddMMMyy")
DateTime.Now.ToString("ddMMMyy"); // case sensitive
use .ToUpper();
if you want to convert month in upper case.