hi
I used below code to change date to shamsi type (persian date)
public string miladitoshamsi(object miladi1)
{
DateTime miladi = Convert.ToDateTime(miladi1);
System.Globalization.PersianCalendar shamsi = new System.Globalization.PersianCalendar();
return string.Format("{0}/{1}/{2}", shamsi.GetYear(miladi), shamsi.GetMonth(miladi), shamsi.GetDayOfMonth(miladi));
}
but it just show date I want it shows date with time from database:
in database I save date and time in table
Date datetime