Solved

Problem in Date field

Posted on 2003-11-20
6
277 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
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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

815 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now