0%
DateTime
Name |
Type |
Remark |
ToShamsiDate |
DateTime |
Convert GregorianDate to ShamsiDate |
ToShortShamsiDate |
DateTime |
Convert GregorianDate to ShamsiDate (Short Format) |
ToLongShamsiDate |
DateTime |
Convert GregorianDate to ShamsiDate (Long Format) |
GetDiffrenceToNow |
DateTime |
Get Diffrence between DateTime and Current DateTime |
ToGregorianDate |
DateTime |
Convert ShamsiDate to GregorianDate |
ToGregorianDate |
PersianDateTime |
Convert PersianDateTime to GregorianDate |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| Debug.WriteLine(DateTime.Now.ToShamsiDate());
Debug.WriteLine(DateTime.Now.ToShortShamsiDate());
Debug.WriteLine(DateTime.Now.ToLongShamsiDate());
Debug.WriteLine(DateTime.Now.GetDiffrenceToNow());
Debug.WriteLine(DateTime.Now.ToGregorianDate());
Debug.WriteLine(PersianDateTime.Now.ToGregorianDate());
|