After a long time, I updated this article again. (Happy!!!)
Since the time I can remember, lack of a class or struct to support Persian calendar in programming languages was one of my big problems. Up to the language I was using, I tried to solve this problem with different solutions. But none of them is an absolute solution.
This problem was almost solved in .NET 2.0 by a class named
PersianCalendar, but it was not the complete way. So I decided to create a class like
PersianDateTime is a very simple
struct which gives us simple support for Persian
DateTime. I'm trying to develop and update it. Therefore it would be great if you leave your suggestions to help me complete it.
Using the Code
A few examples can be found in the source code.
PersianDateTime can be used in two ways: Staticly and instanciately. I mean you can use it with/without an instance:
PersianDateTime persianDateTime = new PersianDateTime(DateTime.Now);