|
-
August 16th, 2007, 08:56 AM
#1
Date Formatting Problem
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|