Get Hijri Year - CSharp System

CSharp examples for System:DateTime Year

Description

Get Hijri Year

Demo Code


using System.Text;
using System.Linq;
using System.Globalization;
using System.Collections.Generic;
using System;// www .ja va2  s  .c o  m

public class Main{
        public static int GetHijriYear(DateTime dateTime)
        {
            System.Globalization.UmAlQuraCalendar calendar = new System.Globalization.UmAlQuraCalendar();
            return calendar.GetYear(dateTime);
        }
}

Related Tutorials