.NETGURU
date in German (instead of English)
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngreg' list.


Erdi, Gabor
-- Moved from [aspngvs] to [aspngreg] by Charles M. Carroll <Click here to reveal e-mail address> --My code is:entry.Timestamp.ToLongDateString()The output I am getting on my page is in German:Mittwoch, 23. Januar 2002 Would anybody know what and where should I set to get the result in English?Thanks,Gabor
Reply to this message...
 
    
=?iso-8859-1?Q?Sondre_Bjell=E5s?=
You could either do like this:
<%=3DDateTime.Now.ToString("f", new =
System.Globalization.CultureInfo("de-DE"))%>

Or you could add culture to your web.config:
<configuration>
<system.web>
<globalization
fileEncoding=3D"utf-8"
requestEncoding=3D"utf-8"
responseEncoding=3D"utf-8"
culture=3D"de-DE"
uiCulture=3D"de-DE"
/>
</system.web>
</configuration>

Or you could do this with the page declartion of your ASP.NET file:
<%@Page Culture=3D"de-DE" UICulture=3D"de-DE" =
ResponseEncoding=3D"utf-8"%>

Hope this helps,
Sondre

-----Original Message-----
From: Erdi, Gabor [mailto:Click here to reveal e-mail address]=20
Sent: 23. januar 2002 17:32
To: aspngreg
Subject: [aspngreg] date in German (instead of English)

-- Moved from [aspngvs] to [aspngreg] by Charles M. Carroll =
<Click here to reveal e-mail address> --

My code is:

entry.Timestamp.ToLongDateString()

The output I am getting on my page is in German:

Mittwoch, 23. Januar 2002=20

Would anybody know what and where should I set to get the result in =
English?

Thanks,
Gabor

| [aspngreg] member Click here to reveal e-mail address =3D YOUR ID=20
| http://www.asplists.com/asplists/aspngreg.asp =3D JOIN/QUIT=20
| http://www.asplists.com/search =3D SEARCH Archives

Reply to this message...
 
    
Erdi, Gabor
Sondre,

Thanks, I have changed the web.cofig file, as you suggested, and it =
works
now.

Gabor

-----Original Message-----
From: Sondre Bjell=E5s [mailto:Click here to reveal e-mail address]
Sent: 23 January 2002 18:13
To: aspngreg
Subject: [aspngreg] RE: date in German (instead of English)

You could either do like this:
<%=3DDateTime.Now.ToString("f", new
System.Globalization.CultureInfo("de-DE"))%>

Or you could add culture to your web.config:
<configuration>
<system.web>
<globalization
fileEncoding=3D"utf-8"
requestEncoding=3D"utf-8"
responseEncoding=3D"utf-8"
culture=3D"de-DE"
uiCulture=3D"de-DE"
/>
</system.web>
</configuration>

Or you could do this with the page declartion of your ASP.NET file:
<%@Page Culture=3D"de-DE" UICulture=3D"de-DE" =
ResponseEncoding=3D"utf-8"%>

Hope this helps,
Sondre

-----Original Message-----
From: Erdi, Gabor [mailto:Click here to reveal e-mail address]=20
Sent: 23. januar 2002 17:32
To: aspngreg
Subject: [aspngreg] date in German (instead of English)

-- Moved from [aspngvs] to [aspngreg] by Charles M. Carroll
<Click here to reveal e-mail address> --

My code is:

entry.Timestamp.ToLongDateString()

The output I am getting on my page is in German:

Mittwoch, 23. Januar 2002=20

Would anybody know what and where should I set to get the result in =
English?

Thanks,
Gabor

| [aspngreg] member Click here to reveal e-mail address =3D YOUR ID=20
| http://www.asplists.com/asplists/aspngreg.asp =3D JOIN/QUIT=20
| http://www.asplists.com/search =3D SEARCH Archives

| [aspngreg] member Click here to reveal e-mail address =3D YOUR ID
| http://www.asplists.com/asplists/aspngreg.asp =3D JOIN/QUIT
| http://www.asplists.com/search =3D SEARCH Archives

Reply to this message...
 
 
System.Globalization.CultureInfo




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification