For most of the Turkish ASP developers, nationalizing the session is a common problem. Because, hosting is an expensive service in Turkey, and most of the developers hire hosting or dedicated servers from abroad, especially from American companies. But here the problem comes: International hosting companies has different customers from different countries. This forces them to use common regional setting, like currency format or date format. But for developers, this causes a problem when it comes to display a date on their pages, coming from server variables or database, or store a date value on database.
On ASP pages, the LCID variable saves us - the developers. With LCID property, you can switch to the desired regional settings for a session or page response. So, when we print the date coming from a server variable or function (like now()) or from database, it just prints in our regional format according to the LCID setting. Also, same problem arises when writing a date field to a database, the date value will be written according to our regional setting that we set for a session.
|