Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 324
  • Last Modified:

Problem in Date field

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
shahsaurabhu
Asked:
shahsaurabhu
1 Solution
 
savalouCommented:
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
 
ahoffmannCommented:
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
 
savalouCommented:
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
ahoffmannCommented:
if the same script works on NT but not w2k, it's most likely not SQL
0
 
liddlerCommented:
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
 
moduloCommented:
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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now