943,777 Members | Top Members by Rank

Ad:
May 15th, 2006
0

Change date format

Expand Post »
How do i change date format in the database
Similar Threads
mod
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mod is offline Offline
2 posts
since Apr 2006
May 18th, 2006
0

Re: Change date format

Quote originally posted by mod ...
How do i change date format in the database
Take a look at the TO_CHAR function

Read more here
Reputation Points: 48
Solved Threads: 7
Posting Whiz
aniseed is offline Offline
353 posts
since Apr 2006
May 20th, 2006
0

Re: Change date format

Quote originally posted by aniseed ...
Take a look at the TO_CHAR function

Read more here

Thanks for your reply the problem is solved
mod
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mod is offline Offline
2 posts
since Apr 2006
May 10th, 2007
0

Re: Change date format

To change date type use to_char() function.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
rbirnale is offline Offline
2 posts
since May 2007
Jun 11th, 2007
0

Re: Change date format

ALTER SESSION set NLS_DATE_FORMAT = 'DD/MM/YYYY';

PLEASE USE THE ABOVE CODE
Featured Poster
Reputation Points: 665
Solved Threads: 427
Posting Genius
debasisdas is offline Offline
6,406 posts
since Feb 2007
Aug 23rd, 2007
0

Re: Change date format

The Alter session is a temporary solution, that makes your session only appears with the format specified..
If you want to create a report or a query or a script that always appear with a specific format then go with TO_CHAR()
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Musta is offline Offline
6 posts
since Aug 2007
Oct 2nd, 2007
0

Re: Change date format

Use To_char Function
To_char(date,'dd-mm-yyyy') In Which Format You Use
Also To_date Function
To_date(date,'dd-mm-yyyy')
Also
To_char(to_date(date,'dd-mm-yyyy'),'dd-mm-yyyy'))
Reputation Points: 10
Solved Threads: 1
Newbie Poster
yogesh_vaidya12 is offline Offline
11 posts
since Oct 2007
1 Day Ago
0

HI

Can Any one tell how to convert String datatype 2 sql
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dhineshbcs is offline Offline
2 posts
since Feb 2012
1 Day Ago
0

HI

Can Anyone tell how to convert String datatype 2 timestamp using altercommand in oracle
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dhineshbcs is offline Offline
2 posts
since Feb 2012
Message:
Previous Thread in Oracle Forum Timeline: Problem in using Oracle Sqlloader!
Next Thread in Oracle Forum Timeline: How to access Oracle Autovue





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC