Change date format

Reply

Join Date: Apr 2006
Posts: 2
Reputation: mod is an unknown quantity at this point 
Solved Threads: 0
mod mod is offline Offline
Newbie Poster

Change date format

 
0
  #1
May 15th, 2006
How do i change date format in the database
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 353
Reputation: aniseed is an unknown quantity at this point 
Solved Threads: 6
aniseed's Avatar
aniseed aniseed is offline Offline
Posting Whiz

Re: Change date format

 
0
  #2
May 18th, 2006
Originally Posted by mod
How do i change date format in the database
Take a look at the TO_CHAR function

Read more here
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 2
Reputation: mod is an unknown quantity at this point 
Solved Threads: 0
mod mod is offline Offline
Newbie Poster

Re: Change date format

 
0
  #3
May 20th, 2006
Originally Posted by aniseed
Take a look at the TO_CHAR function

Read more here

Thanks for your reply the problem is solved
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 2
Reputation: rbirnale is an unknown quantity at this point 
Solved Threads: 0
rbirnale rbirnale is offline Offline
Newbie Poster

Re: Change date format

 
0
  #4
May 10th, 2007
To change date type use to_char() function.
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 2,132
Reputation: debasisdas will become famous soon enough debasisdas will become famous soon enough 
Solved Threads: 132
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Postaholic

Re: Change date format

 
0
  #5
Jun 11th, 2007
ALTER SESSION set NLS_DATE_FORMAT = 'DD/MM/YYYY';

PLEASE USE THE ABOVE CODE
Share your Knowledge.
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 6
Reputation: Musta is an unknown quantity at this point 
Solved Threads: 0
Musta Musta is offline Offline
Newbie Poster

Re: Change date format

 
0
  #6
Aug 23rd, 2007
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()
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 11
Reputation: yogesh_vaidya12 is an unknown quantity at this point 
Solved Threads: 1
yogesh_vaidya12 yogesh_vaidya12 is offline Offline
Newbie Poster

Re: Change date format

 
0
  #7
Oct 2nd, 2007
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'))
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Oracle Forum
Thread Tools Search this Thread



Tag cloud for Oracle
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC