Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

IIS outputs dates in wrong date format

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  Web Site name using Port  
Author Message
dkrogstrup

External


Since: Jul 15, 2004
Posts: 3



(Msg. 1) Posted: Thu Jul 15, 2004 5:37 am
Post subject: IIS outputs dates in wrong date format
Archived from groups: microsoft>public>inetserver>iis (more info?)

I have a win2000 webserver with IIS installed.
In "Control Panel" > "Regional Settings" I´ve setup the server to Danish Input Locale. I´ve also setup the date format to dd-mm-yyyy

But no matter what I do the server keep on outputting dates in american format (mm/dd/yyyy) when I output dates from my ASP-code.

I knwo I can change this by specifying session.lcid - but I want the server to output dates in Danish format by default. I have another webserver that output my dates correct, but I cant figure how I managed to setup this server this way.

How do I change the way IIS outputs dates from my ASP-code by default ?

 >> Stay informed about: IIS outputs dates in wrong date format 
Back to top
Login to vote
andrey

External


Since: Apr 12, 2004
Posts: 214



(Msg. 2) Posted: Mon Jul 19, 2004 2:33 pm
Post subject: Re: IIS outputs dates in wrong date format [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

DKrogstrup wrote:
 > I have a win2000 webserver with IIS installed.
 > In "Control Panel" > "Regional Settings" I´ve setup the server to Danish Input Locale. I´ve also setup the date format to dd-mm-yyyy
 >
 > But no matter what I do the server keep on outputting dates in american format (mm/dd/yyyy) when I output dates from my ASP-code.
 >
 > I knwo I can change this by specifying session.lcid - but I want the server to output dates in Danish format by default. I have another webserver that output my dates correct, but I cant figure how I managed to setup this server this way.
 >
 > How do I change the way IIS outputs dates from my ASP-code by default ?

Make sure you have the correct LCID hardcoded:

<a style='text-decoration: underline;' href="http://www.codetoad.com/asp/format_date_time.asp" target="_blank">http://www.codetoad.com/asp/format_date_time.asp</a>

-Andrey<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: IIS outputs dates in wrong date format 
Back to top
Login to vote
dkrogstrup

External


Since: Jul 15, 2004
Posts: 3



(Msg. 3) Posted: Mon Jul 19, 2004 3:53 pm
Post subject: Re: IIS outputs dates in wrong date format [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Andrey

Hmmm - did you read my question ?

I dont wanna hardcode LCID - I want the server to output dates in danish format without haveing to specify LCID. I know this is possible, since I have a nother server, that does this. I just cant figure out how I managed this server to act this way.

/David

"Andrey P" wrote:

 > DKrogstrup wrote:
  > > I have a win2000 webserver with IIS installed.
  > > In "Control Panel" > "Regional Settings" I´ve setup the server to Danish Input Locale. I´ve also setup the date format to dd-mm-yyyy
  > >
  > > But no matter what I do the server keep on outputting dates in american format (mm/dd/yyyy) when I output dates from my ASP-code.
  > >
  > > I knwo I can change this by specifying session.lcid - but I want the server to output dates in Danish format by default. I have another webserver that output my dates correct, but I cant figure how I managed to setup this server this way.
  > >
  > > How do I change the way IIS outputs dates from my ASP-code by default ?
 >
 > Make sure you have the correct LCID hardcoded:
 >
<font color=purple> > <a style='text-decoration: underline;' href="http://www.codetoad.com/asp/format_date_time.asp</font" target="_blank">http://www.codetoad.com/asp/format_date_time.asp</font</a>>
 >
 > -Andrey
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: IIS outputs dates in wrong date format 
Back to top
Login to vote
dkrogstrup

External


Since: Jul 15, 2004
Posts: 3



(Msg. 4) Posted: Mon Jul 19, 2004 3:53 pm
Post subject: Re: IIS outputs dates in wrong date format [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Andrey

Hmmm - did you read my question ?

I dont wanna hardcode LCID - I want the server to output dates in danish format without haveing to specify LCID. I know this is possible, since I have a nother server, that does this. I just cant figure out how I managed this server to act this way.

/David

"Andrey P" wrote:

 > DKrogstrup wrote:
  > > I have a win2000 webserver with IIS installed.
  > > In "Control Panel" > "Regional Settings" I´ve setup the server to Danish Input Locale. I´ve also setup the date format to dd-mm-yyyy
  > >
  > > But no matter what I do the server keep on outputting dates in american format (mm/dd/yyyy) when I output dates from my ASP-code.
  > >
  > > I knwo I can change this by specifying session.lcid - but I want the server to output dates in Danish format by default. I have another webserver that output my dates correct, but I cant figure how I managed to setup this server this way.
  > >
  > > How do I change the way IIS outputs dates from my ASP-code by default ?
 >
 > Make sure you have the correct LCID hardcoded:
 >
<font color=purple> > <a style='text-decoration: underline;' href="http://www.codetoad.com/asp/format_date_time.asp</font" target="_blank">http://www.codetoad.com/asp/format_date_time.asp</font</a>>
 >
 > -Andrey
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: IIS outputs dates in wrong date format 
Back to top
Login to vote
andrey

External


Since: Apr 12, 2004
Posts: 214



(Msg. 5) Posted: Mon Jul 19, 2004 7:12 pm
Post subject: Re: IIS outputs dates in wrong date format [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

 > Hmmm - did you read my question ?

Yes.

But you see that changing system setting doesn't work. Try the workarond
I offered.

-Andrey


DKrogstrup wrote:

 > Hi Andrey
 >
 > Hmmm - did you read my question ?
 >
 > I dont wanna hardcode LCID - I want the server to output dates in danish format without haveing to specify LCID. I know this is possible, since I have a nother server, that does this. I just cant figure out how I managed this server to act this way.
 >
 > /David
 >
 > "Andrey P" wrote:
 >
 >
  >>DKrogstrup wrote:
  >>
   >>>I have a win2000 webserver with IIS installed.
   >>>In "Control Panel" > "Regional Settings" I´ve setup the server to Danish Input Locale. I´ve also setup the date format to dd-mm-yyyy
   >>>
   >>>But no matter what I do the server keep on outputting dates in american format (mm/dd/yyyy) when I output dates from my ASP-code.
   >>>
   >>>I knwo I can change this by specifying session.lcid - but I want the server to output dates in Danish format by default. I have another webserver that output my dates correct, but I cant figure how I managed to setup this server this way.
   >>>
   >>>How do I change the way IIS outputs dates from my ASP-code by default ?
  >>
  >>Make sure you have the correct LCID hardcoded:
  >>
  >>http://www.codetoad.com/asp/format_date_time.asp
  >>
  >>-Andrey
  >>

  > Hmmm - did you read my question ?

Yes.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: IIS outputs dates in wrong date format 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Dates of the files are on a different format - On my server my IIS is showing the dates in mm/dd/yyyy format. In the beginning I thought it's from the ASP codes but not . How can I change it to dd/mm/yyyy format?

Date Format Changes in IIS 4.0 - I've had odd occurrences where the date format changes from mm/dd/ccyy to mm/dd/yy when retrieving from IIS 4.0 - retrieve it from anywhere else on the server, it is correct. When it occurs, this causes ASP pages to get confused since the code is..

date format - hi, the clock on our server is set for GMT but it is being displayed in the american format mm/dd/yy. how can we change these settings so that the date will be displayed as dd/mm/yy. any help on the matter would be appreciated. Kind Regards, Oliver..

asp date format - I have an access 2000 db with a date of birth field in uk format dd/mm/yyyy. I have a simple sql query in an asp page which needs to find if 2 dates are the same. Whenever i send a date variable to the access database thro my query no results are..

date format - IIS - when use a recorset for data in mysql show the date in american format. Its possible convert to british format ? With the configuration in IIS ? I try change the Windows 2000 Server format but not sucessful. thanks any ideas Vivian
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]