Date Time C#

using System;
using System.Globalization;
using System.Threading;
public class MainClass
{
    public static void Main()
    {
        CultureInfo originalCulture = Thread.CurrentThread.CurrentCulture;
        CultureInfo ci = new CultureInfo("ar-SA");
        Thread.CurrentThread.CurrentCulture = ci;
        DateTime hijriDate = new DateTime(1430, 1, 17, Thread.CurrentThread.CurrentCulture.Calendar);
        Console.WriteLine(hijriDate.ToString("dd-MM-yyyy"));
        Console.WriteLine(Thread.CurrentThread.CurrentCulture.Calendar.GetDayOfMonth(hijriDate));
        Thread.CurrentThread.CurrentCulture = originalCulture;
    }
}