Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Problem in Date field

Posted on 2003-11-20
6
Medium Priority
?
319 Views
Last Modified: 2013-12-26
The question is littlebit tricky, in which i had developed a Web base application using ASP that run on IIS web server. The database is ORACLE on UNIX Platform. When i deploy the site on Windows NT running with IIS 5, it works fine. But the same i deploy on Windows 2000 server running IIS 5 the problem is coming.
In this, when i save the data through web browser, Particularly date field, it inserts the data by making mm(month) part to dd(datepart) and viseversa. This is the case for date and month less than 12. So what is the actaul problem and what is the solution?

Pl. help me.
0
Comment
Question by:shahsaurabhu
[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
6 Comments
 
LVL 3

Expert Comment

by:savalou
ID: 9787344
So the only change was going from NT to Windows 2000?  You could try setting the regional date setting on the Win2K to a d/M/y format.  Or M/d/y, whichever.  What does your Oracle expect?  If you got a date out of it, how is it formatted?
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 9799837
Oracle is very picky about date formats, it have to be defined for the view.
So it's most likely your ASP which did it wrong, 'cause haven't changed the SQL in ASP, did you?
savalou's suggestion seems to be the solution
0
 
LVL 3

Expert Comment

by:savalou
ID: 9800316
I also seem to remember a chartodate or some-such function for oracle where you can also specify the date format, sort of like the following:

insert into mytable (mydate) values (chartodate('4/3/03', 'd/M/y'))

There is also a date-to-char function.  I'd look in the oracle docs if that seems useful.
0
Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

 
LVL 51

Expert Comment

by:ahoffmann
ID: 9800490
if the same script works on NT but not w2k, it's most likely not SQL
0
 
LVL 18

Expert Comment

by:liddler
ID: 10191750
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

PAQ  No refund

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

liddler
EE Cleanup Volunteer
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 10241732
PAQed - no points refunded (of 250)

modulo
Community Support Moderator
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

670 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