我有一堂课:
public class PersianDate
{
public int Year;
public int Month;
public int Day;
public int Hour;
public int Minute;
public int Second;
public string MonthName;
}
如果我像这里一样转换它,我想要它:
HTools.PersianDate pDate=new HTools.PersianDate();
string date = pDate.ToString();
我希望日期是:
1396-06-14T19:17:38
我怎样才能做到这一点?