Hi,

I am trying to format the date display but i find problem while formatting the year part

DateTime dt2 = new DateTime(03,02,01);

Console.WriteLine(dt2.ToString("dd-MMM-yyyy"));


Output is 01-Feb-0003

Required output is 01-Feb-2003

Note:- The input date arguments comes from another logic with only in 'yy' format i need to convert it to 'yyyy' format

Thanks in advance for the help

Anand