?
Solved

Strange Date format problem win2k advanced server

Posted on 2003-02-25
3
Medium Priority
?
140 Views
Last Modified: 2010-04-20
Hi all,

I was forced to re-install win2k advanced server (SP3) and while testing my web page's I stumbled into the following problem:

If I put the following code in my asp page's:
<%
Datum=DateSerial(Year(date), Month(date), Day(date))
tesponse.write(Datum)
%>
This is the output i'm getting:
25-Feb-03

Before the reinstall it looked like:
2/25/2003

Because I'd some nifty programming with the Date m/d/yyy I really need an answer to my question:
HOW CAN I GET THE DATE BACK?

I did try to adjust my regional settings .. no use

Re programming is not an option ... so please help me with my server

Greets M.
0
Comment
Question by:Ivanna1997
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
mblaivax earned 200 total points
ID: 8025099
Hello M.

you have to solutions for your problem:

1) if your application is using anonymous settings then:
a. Create new IIS user
b. Log on with this user.
c. Set his personal time / date settings as your application needs.
d. Logon again with some admin user. Open IIS Manager
e. Add this user as default anonymous user.

2) Registry fix
In order to change Date format to IIS, open your registry file and go to "HKEY_USERS\.Default\Control Panel\International"

In this section you will find all parameters that set date / time for your system user. (IIS , anonynous, integrated).
you can find detailed explanation regarding idate / itime / sshortdate parameters in MSDN / technet
http://technet.microsoft.com

Regards

0
 

Author Comment

by:Ivanna1997
ID: 8025909
Mblaivax,

You're the greatest ..... thnx a million ... the registry trick did it

I'm a happy camper again.

M.
0
 
LVL 1

Expert Comment

by:mblaivax
ID: 8028124
Sure, any time

Dear Ivanna1997 - what about the points ?
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
There may be issues when you are trying to access Outlook or send & receive emails or due to Outlook crash which leads to corrupt or damaged PST file. To eliminate the corruption from your PST file, you need to repair the corrupt Outlook PST file. U…
Suggested Courses

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question