I use this code to get date
String.Format("{0:yyyy/MM/dd}", Convert.ToDateTime(calender.Text))
It work correct.
But I cannot get 3 special data so my program crashing.
in the day "31" and Month "2" , "4" , "6" for example "1397/06/31"
or "1397/04/31"
How to fix it? I use persian date calendar.