DateTime date1 = new DateTime(YY, MM, DD);
DateTime date2 = new DateTime(YY, 4, 1);
DateTime date3 = new DateTime(YY, 12, 31);
DateTime date4 = new DateTime(YY, 3, 31);
DateTime date5 = new DateTime(YY - 1, MM, DD);
DateTime date6 = new DateTime(YY + 1, MM, DD);
DateTime date7 = new DateTime(YY, 1, 1);
Why is this date format used and where can it be used?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Nov 14, 2011, 11:43 PM EST
Jean PaulRank #32 · 38.5K reputationPosted Nov 14, 2011, 11:37 PM EST
Depending on clients of different locations we can change the format. For eg: India and US customer will be having different date time formats.
In the case of desktop applications the default format shows according to the Regional Settings of the computer.