Monday, July 28, 2014

How To read last two digits from Year

Hello,


Something like that:



DateTime mydate = new DateTime(2014, 07, 28);
string lastTwoDigitsOfYear = mydate .ToString("yy");

Regards


Cedric


No comments:

Post a Comment