i'm getting CultureInfo.InvariantCulture format for MM/dd/yyyy. but i want to get dd/MM/yyyy format what i do that
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/12986114/get-the-system-date-and-split-day-month-and-year">get the system date and split day,month and year</a>  </p>
</blockquote>



<p>getting CultureInfo.InvariantCulture format for MM/dd/yyyy. but i want to get dd/MM/yyyy format and i want to split the day and month and year.</p>

<p>Here is my code :</p>

<pre><code>string sDate = string.Empty;
DateTime _date = DateTime.Now;
DateTime dateFormat = Convert.ToDateTime(_date.ToString(CultureInfo.InvariantCulture));
int count = 0;
string format = "dd/MM/yyyy";
sDate = dateFormat.ToString(format);
string[] Words = sDate.Split(new char[] { '/' });
foreach (string Word in Words)
{
    count += 1;
    if (count == 1) { Day = Word; }
    if (count == 2) { Month = Word; }
    if (count == 3) { Year = Word; }
}
</code></pre>
