I have a datagrid which populated by some data from sqlserver.I have datetime filed that represent Georgian date,but i want to convert this to Persian by using PersianCalendar.
I wan some kind of conversion, that gets Georgian date from database but when it comes to show on datagrid or some where else, it shows persian date.
I have a datagrid which populated by some data from sqlserver.I have datetime filed
Share
For formatting you need to use the appropriate CultureInfo class, not the calendar – the names of persian cultures are
faorfa-IR, as can be seen here.Update:
You can use the
ItemDataBoundevent of the grid in order to format the date exactly as you want.