Date Format

  • Thread starter Thread starter Albeda
  • Start date Start date
A

Albeda

Created a simple script that shows the current date:
Dim MyDate As Date = Today
Response.Write(MyDate)

On my localhost the output for this script is:
14-3-2005 0:00:00 (dutch format)

When i publisch the script to my production server the output is:
[b:c96d6612e6]03/14/2005 00:00:00[/b:c96d6612e6] (english format)

Checked the regio options on the server, and changed the date format
to dd-MM-yyyy. It still shows the english format!

Where can i change this???
 
Take a look at Web.Config file globalization section.

HTH
Jignesh Desai
www.dotnetjini.com




Albeda said:
Created a simple script that shows the current date:
Dim MyDate As Date = Today
Response.Write(MyDate)

On my localhost the output for this script is:
14-3-2005 0:00:00 (dutch format)

When i publisch the script to my production server the output is:
[b:c96d6612e6]03/14/2005 00:00:00[/b:c96d6612e6] (english format)

Checked the regio options on the server, and changed the date format
to dd-MM-yyyy. It still shows the english format!

Where can i change this???
 
Back
Top