Skip to content

hadikalantari/Using-Persian-Date-in-ASP.NET-MVC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Using-Persian-Date-in-ASP.NET-MVC

Persian Date (Jalali) to the Gregorian date conversion and vice versa.

##Usage: The main class is PersianDateTime in ~/Models/PersianDateTime.cs You can use the class like this:

####for convert string of persianDateTime to DateTime

    var persianDateTimeString = "1393/01/08";
    PersianDateTime persianDateTime = PersianDateTime.Parse(persianDateTimeString);
    DateTime gregorianDatetime = persianDateTime.DateTime;

####for convert gregorian to PersianDateTime

    PersianDateTime pdt = new PersianDateTime(DateTime.Now);

PersianDatepicker from here: https://github.com/behzadi/persianDatepicker/

License

Free Software

##Screenshots ####Using PersianDatepicker Using PersianDatepicker ####Converting PersianDateTime to GregorianDateTime Converting PersianDateTime to GregorianDateTime ####Convert Gregorian to PersianDateTime Convert Gregorian to PersianDateTime ####Fields of PersianDateTime object Fields of PersianDateTime object

About

Persian Date (Jalali) to the Gregorian date conversion and vice versa.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published