- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
string[] dateStringParts = dateString.Split(new [] {DateTimeFormatInfo.CurrentInfo.DateSeparator}, StringSplitOptions.RemoveEmptyEntries);
if (dateStringParts.Count() != 3)
{
dateStringParts = DateTime.Now.ToString("dd MMMM yyyy").Split(' ');
}
string day = dateStringParts[0];
string month = dateStringParts[1];
string year = dateStringParts[2];
string shortYear = dateStringParts[2].Substring(dateStringParts[2].Length - 2, 2);