I have virtual directory where I run test.asp page with only this code
inside:
<%Response.Write now()%>
As a result, if I go into the IE and browse for the test.asp page, I get :
1/22/2004 14:18:04
If I copy this page on some other(existing) virtual directory, I get as a
result
22.1.2004 14:19:06
If I create a new virtual directory and I copy the page there, I get :
1/22/2004 14:18:04
Seems like that IIS takes english date format even if my regional setting is
:
d.M.yyyy and I would like that date on the page is always like this:
22.1.2004 14:19:06
Where I can change this setting?
Is there some bug in IIS?
Thank you,
Simon 4 2342
simon wrote: I have virtual directory where I run test.asp page with only this code inside: <%Response.Write now()%>
As a result, if I go into the IE and browse for the test.asp page, I get : 1/22/2004 14:18:04
If I copy this page on some other(existing) virtual directory, I get as a result 22.1.2004 14:19:06
If I create a new virtual directory and I copy the page there, I get : 1/22/2004 14:18:04
Seems like that IIS takes english date format even if my regional setting is d.M.yyyy and I would like that date on the page is always like this: 22.1.2004 14:19:06
Where I can change this setting? Is there some bug in IIS?
Thank you, Simon http://www.aspfaq.com/show.asp?id=2260
This site has a couple more articles devoted to formatting dates so you
should use the Search tool to find them.
HTH,
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
hi, thank you for your link, I read all about it.
If I use: session.LCID=1060 (which is Slovenian lcid) I still get the
american or similar format (mm/dd/yyyy).
If I use session.LCID=1031 (which is German) than the date is changed
(dd.mm.yyyy).
It somehowe takes that the slovenian format is like english. Why?
I looked at registry:
HKEY_CURRENT_USER\Control Panel\International
and all settings are ok, they are slovenian like they should be.
And in windows everything is fine, only on the asp page is wrong format.
So, where could be the problem?
Thank you,
Simon
"Bob Barrows" <re******@NOyahoo.SPAMcom> wrote in message
news:u4**************@tk2msftngp13.phx.gbl... simon wrote: I have virtual directory where I run test.asp page with only this code inside: <%Response.Write now()%>
As a result, if I go into the IE and browse for the test.asp page, I get : 1/22/2004 14:18:04
If I copy this page on some other(existing) virtual directory, I get as a result 22.1.2004 14:19:06
If I create a new virtual directory and I copy the page there, I get : 1/22/2004 14:18:04
Seems like that IIS takes english date format even if my regional setting is d.M.yyyy and I would like that date on the page is always like this: 22.1.2004 14:19:06
Where I can change this setting? Is there some bug in IIS?
Thank you, Simon
http://www.aspfaq.com/show.asp?id=2260
This site has a couple more articles devoted to formatting dates so you should use the Search tool to find them.
HTH, Bob Barrows
-- Microsoft MVP - ASP/ASP.NET Please reply to the newsgroup. This email account is my spam trap so I don't check it very often. If you must reply off-line, then remove the "NO SPAM"
Obviously, someone messed up your regional settings. So, instead of relying
on them, format your dates manually. http://www.aspfaq.com/2313
(Or, show them in an unambiguous format, e.g. yyyy-mm-dd)
--
Aaron Bertrand
SQL Server MVP http://www.aspfaq.com/
"simon" <si*********@stud-moderna.si> wrote in message
news:Og**************@TK2MSFTNGP10.phx.gbl... hi, thank you for your link, I read all about it.
If I use: session.LCID=1060 (which is Slovenian lcid) I still get the american or similar format (mm/dd/yyyy).
If I use session.LCID=1031 (which is German) than the date is changed (dd.mm.yyyy).
It somehowe takes that the slovenian format is like english. Why?
I looked at registry: HKEY_CURRENT_USER\Control Panel\International
and all settings are ok, they are slovenian like they should be.
And in windows everything is fine, only on the asp page is wrong format.
So, where could be the problem?
Thank you, Simon
"Bob Barrows" <re******@NOyahoo.SPAMcom> wrote in message news:u4**************@tk2msftngp13.phx.gbl... simon wrote: I have virtual directory where I run test.asp page with only this code inside: <%Response.Write now()%>
As a result, if I go into the IE and browse for the test.asp page, I get : 1/22/2004 14:18:04
If I copy this page on some other(existing) virtual directory, I get as a result 22.1.2004 14:19:06
If I create a new virtual directory and I copy the page there, I get : 1/22/2004 14:18:04
Seems like that IIS takes english date format even if my regional setting is > d.M.yyyy and I would like that date on the page is always like this: 22.1.2004 14:19:06
Where I can change this setting? Is there some bug in IIS?
Thank you, Simon
http://www.aspfaq.com/show.asp?id=2260
This site has a couple more articles devoted to formatting dates so you should use the Search tool to find them.
HTH, Bob Barrows
-- Microsoft MVP - ASP/ASP.NET Please reply to the newsgroup. This email account is my spam trap so I don't check it very often. If you must reply off-line, then remove the "NO SPAM"
To make a variable be in the format of yyyy-mm-dd (and the final line of
code can be modifed for other date formats), perhaps try something like
the following which you might even make into a function:
varFld = CDate(MyVariable)
intMonth = Month(varFld)
intDay = Day(varFld)
intYr = Year(varFld)
If intMonth < 10 Then
strMonth = "0" & CStr(intMonth)
Else
strMonth = CStr(intMonth)
End If
If intDay < 10 Then
strDay = "0" & CStr(intDay)
Else
strDay = CStr(intDay)
End If
varFld = CStr(intYr & "-" & strMonth & "-" & strDay)
Best regards,
J. Paul Schmidt, Freelance ASP Web Developer http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Simon Brooke |
last post by:
I'm investigating a bug a customer has reported in our database
abstraction layer, and it's making me very unhappy.
Brief summary:
I have a database abstraction layer which is intended to...
|
by: amith |
last post by:
hi
I have written javascript for comparing two dates in US format and
finding out whether the start date is greater than the end date and
vice versa.
In this attempt i have instantiated the...
|
by: Richard Hollenbeck |
last post by:
I'm trying to write some code that will convert any of the most popular
standard date formats twice in to something like "dd Mmm yyyy" (i.e. 08 Jan
1908) and compare the first with the second and...
|
by: Lyn |
last post by:
Hi,
I am developing a project in which I am checking for records with
overlapping start/end dates. Record dates must not overlap date of birth,
date of death, be in the future, and must not...
|
by: Macca |
last post by:
Hi,
I have a table which has a date/time field. I am storing them as follows :-
01/01/2005 11:25
01/01/2005 19:44
02/01/2005 05:04
|
by: Assimalyst |
last post by:
Hi,
I have a working script that converts a dd/mm/yyyy text box date entry
to yyyy/mm/dd and compares it to the current date, giving an error
through an asp.net custom validator, it is as...
|
by: andreas |
last post by:
When I copy a vb.net project using date formats from one PC with a windows
date format f.e. dd/mm/yyyy to another PC having a format yy/mm/dd then I
get errors.
How can I change for a while in the...
|
by: fniles |
last post by:
On my machine in the office I change the computer setting to English (UK) so
the date format is dd/mm/yyyy instead of mm/dd/yyyy for US.
This problem happens in either Access or SQL Server.
In the...
|
by: OzNet |
last post by:
I have some functions to calculate the working days in a given period. This includes a table that is queried to calculate the number of public holidays that don’t occur on a weekend.
If I test...
|
by: ollyb303 |
last post by:
Hello,
I am using a dynamic crosstab report to track performance statistics for my company and I have hit a problem.
I would like the option to track stats daily (for the last 7 complete...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |