Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Closed Thread
date format on oracle
Old 04-26-2010, 06:15 AM date format on oracle
Experienced Talker

Posts: 37
Name: ahmad
Trades: 0
Dears,
i have web site on my server and this server has oracle and the format date of my server is dd/MM/yyyy and also format date of my client is dd/MM/yyyy
but when he read the date give me this format M/d/yyyy
i need it read this format dd/MM/yyyy because i face problem in insert date
Thanks
EngAhmad is offline
View Public Profile
 
 
Register now for full access!
Old 04-26-2010, 07:19 AM Re: date format on oracle
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://download.oracle.com/docs/cd/B...htm#SQLRF00210
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Old 04-26-2010, 07:33 AM Re: date format on oracle
Experienced Talker

Posts: 37
Name: ahmad
Trades: 0
this format is used in procedure or functions but i'm using .net and i try this format M/d/yyyy and insert data the same keep in mind the server his format is dd/MM/yyyy
and i show this in regional and language option in windows control panel but why give me this format M/d/yyyy
EngAhmad is offline
View Public Profile
 
Old 04-26-2010, 07:40 AM Re: date format on oracle
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
This IS the database forum and you neglected to mention anything about .net so you got a solution for querying Oracle!

AND you simply use the date/time fuctions in the queries you send to the database server and the values return in the format you requested.

It is FAR more efficient to have database server handle the conversions than it is to handle the data in server side code!
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Old 04-26-2010, 08:11 AM Re: date format on oracle
Experienced Talker

Posts: 37
Name: ahmad
Trades: 0
the date of my server is as insert in the query but when request it from data based return to me in other format...i'm not format it he take windows format in insert data
EngAhmad is offline
View Public Profile
 
Old 04-26-2010, 08:16 AM Re: date format on oracle
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Then you should convert it in your query. Either on INSERT/UPDATE or on SELECT.

USE the tools that are at your disposal in the DB server, rather than fighting against them in the server code!
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Old 04-26-2010, 08:23 AM Re: date format on oracle
Experienced Talker

Posts: 37
Name: ahmad
Trades: 0
i do that the same .
EngAhmad is offline
View Public Profile
 
Closed Thread     « Reply to date format on oracle
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.39568 seconds with 12 queries