?
Solved

Strange Date format problem win2k advanced server

Posted on 2003-02-25
3
Medium Priority
?
131 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

765 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