hi
you can use from my code
using
System;
using
System.Data;
using
System.Configuration;
using
System.Web;
using
System.Web.Security;
using
System.Web.UI;
using
System.Web.UI.WebControls;
using
System.Web.UI.WebControls.WebParts;
using
System.Web.UI.HtmlControls;
using
System.Globalization;
///
///
<summary> Summary description for DateTime1
///
</summary>
public
class DateTime1
{
{
_ToDay = newcal.GetDayOfWeek(
_Month = newcal.GetMonth(
{
_Month =
_Month =
_Month =
_Month =
_Month =
_Month =
_Month =
_Month =
_Month =
_Month =
_Month =
_Month =
}
{
_ToDay =
_ToDay =
_ToDay =
_ToDay =
_ToDay =
_ToDay=
_ToDay=
}
_Date = _Month +
_Day = _ToDay;
}
public string _Day;
public string _Date;
public string _Month;
public void Get_Date_Time()string _ToDay;PersianCalendar newcal = new PersianCalendar();DateTime.Now).ToString();DateTime.Now).ToString();switch (_Month)case "1":"فروردین";break;case "2":"اردیبهشت";break;case "3":"خرداد";break;case "4":"تیر";break;case "5":"مرداد";break;case "6":"شهریور";break;case "7":"مهره";break;case "8":"آبان";break;case "9":"آذر";break;case "10":"دی";break;case "11":"بهمن";break;case "12":"اسفند";break;switch(_ToDay)case "Sunday":"یکشنبه";break;case "Monday":"دوشنبه";break;case "Tuesday":"سه شنبه";break;case "Wednesday":"چهارشنبه";break;case "Thursday":"پنجشنبه";break;case "Friday":"جمعه";break;case "Saturday":"شنبه";break;" " + newcal.GetYear(DateTime.Now).ToString();