Click here to Skip to main content
15,893,487 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi friends.
I have a datagridview in my asp.net web page which gathers its data from database.One filed`s data type is datetme, but I want to show Persian date instead of something like 2010/70/02.
I tried <globalization> in config file, but it did not work.
Posted

Try here[^] - a quick search would have found it...
 
Share this answer
 
I read the article, but it cant solve my problem.I already knew Persian Date in .Net or other classes, my problem is that i can not replace default datetime in sql server with persian date.
 
Share this answer
 
Comments
OriginalGriff 27-Jul-10 15:10pm    
First off, don't reply by pressing the Answer button - no-one but you gets told you have done it. Use the "Add comment" which causes an email to be sent (like this one).

Second, don't try to replace the SQL server date with the persian date. Leave it in the default format - which is just a "number of days since an arbitrary day" and convert it when you read the date, or need to interface with other software or with users. It is irrelevant what date is actually stored, as long as there is a conversion system available.
babak dev 27-Jul-10 15:14pm    
okay OriginalGriff.Would you please help me more by introducing and example!?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900