Date Format

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???
 
J

Jignesh Desai

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???
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top