Skip to content

yareda/EthiopicCalendar

Repository files navigation

Ethiopic date conversion in C# based on JDN

A class library for converting Ethiopian dates to Gregorian and vice versa. The algorithm is based on Julian Day Numbers (JDN). The C# version is a port of the Java one found at ethiopic.org (http://ethiopic.org/calendars/EthiopicCalendar.java).

Usage

        private EthiopicCalendar.Calendar ec = new Calendar();
        var selected = this.dateTimePicker1.Value;            
        
        // Using the ec instance of the Calendar class
        textBox.Text = ec.GregorianToEthiopic(selected.Date);
        
        // Directly using method chaining
        label.Text = new EthiopicDateTime(selected.Date).ToString();

More Resources

About

Ethiopic date conversion in C# based on Julian Day Numbers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages