Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Current Version (Old)
 ASP/VBS Question: Date/Time Description Question
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

EarlQuack
Starting Member

Netherlands
10 Posts

Posted - 13 June 2001 :  07:38:59  Show Profile
Hi,

I was wondering how to change the description the months, days, etc. can be changed within ASP/VBScript.

Currently the date (monthname/dayname) are specified in English, but I want to let them occur in Dutch.

When I use the following string:

<%

Response.Write MonthName(Month(Now))

%>

The output is:

June

But now I want it to be:

Juni

How can I change this? Does anyone know?

Thx in advance,

EQ

EarlQuack
Starting Member

Netherlands
10 Posts

Posted - 13 June 2001 :  10:24:21  Show Profile
I have been looking into the code more, and I found that it is changed somewhere in config.asp

If I make a asp page, and do NOT include config.asp, it works fine. The code snippet: <% Response.Write Monthname(Month(Now)) %> responses the monthname in the language of the operating system. So somewhere in config this is overruled.

Does anyone know?

Grz. EQ

Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 13 June 2001 :  10:35:46  Show Profile
Someone had done this before. You would get the month name in english, and then translate it to your language.
Dim strMonthname
select case Monthname(Month(Now))
case "January"
strMonthname = "Janu"
case "February"
strMonthname = "Febu"
...
...
case "June"
strMonthname = "Juni"
...
Then you would do "Response.Write strMonthname" on your pages.

That's just an example. But you get the general idea. You could probably place it in your config file, if you know what you're doing.



Edited by - Davio on 13 June 2001 10:36:44
Go to Top of Page

EarlQuack
Starting Member

Netherlands
10 Posts

Posted - 13 June 2001 :  11:21:38  Show Profile
quote:

Someone had done this before. You would get the month name in english, and then translate it to your language.
Dim strMonthname
select case Monthname(Month(Now))
case "January"
strMonthname = "Janu"
case "February"
strMonthname = "Febu"
...
...
case "June"
strMonthname = "Juni"
...
Then you would do "Response.Write strMonthname" on your pages.

That's just an example. But you get the general idea. You could probably place it in your config file, if you know what you're doing.



Edited by - Davio on 13 June 2001 10:36:44



Yep, know what I am doing, and this works fine, but the thing remains that it is changed (overruled) by snitz config first... I was wondering where that was done.

Thanks anyway, I'm happy...

EQ

Go to Top of Page

EarlQuack
Starting Member

Netherlands
10 Posts

Posted - 19 June 2001 :  10:57:06  Show Profile
Sorry to bother with this problem again, but:

The Events MOD uses monthnames also; that means that the months are viewed in English again... I would like to change it at the bottom of the problem: config.asp

Isn't there anyone who knows what overrules the system language in config.asp concerning monthnames?

Thx sincerely,

EQ

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07