Sunday, April 26, 2015

calendar get year umalqura using c#

 CultureInfo arCulture = new CultureInfo("ar-SA");
        System.Threading.Thread.CurrentThread.CurrentCulture = arCulture;
        arCulture.DateTimeFormat.Calendar = new UmAlQuraCalendar();
        int yearr =arCulture.Calendar.GetYear(DateTime.Now );

No comments:

Post a Comment