One of new feature that was added in Asp.net 3.5 is script globalization and localization. We can display date based on language setting of browser. Here is code snippet of displaying date in local language using script..
[code:c#]
<script type="text/javascript">
function formatDate() {
var d = new Date();
try {
$get('Label1').innerHTML = d.localeFormat("dddd, dd MMMM yyyy HH:mm:ss");
}
catch (e) {
alert("Error:" + e.message);
}
}
window.onload
{
formatDate();
}
</script>
[/code]