User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Oracle section within the Web Development category of DaniWeb, a massive community of 401,725 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,127 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Views: 9178 | Replies: 6
Reply
Join Date: Apr 2006
Posts: 2
Reputation: mod is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
mod mod is offline Offline
Newbie Poster

Help Change date format

  #1  
May 15th, 2006
How do i change date format in the database
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2006
Location: Mumbai, India
Posts: 351
Reputation: aniseed is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 5
aniseed's Avatar
aniseed aniseed is offline Offline
Posting Whiz

Re: Change date format

  #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  
Join Date: Apr 2006
Posts: 2
Reputation: mod is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
mod mod is offline Offline
Newbie Poster

Re: Change date format

  #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  
Join Date: May 2007
Posts: 2
Reputation: rbirnale is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
rbirnale rbirnale is offline Offline
Newbie Poster

Re: Change date format

  #4  
May 10th, 2007
To change date type use to_char() function.
Reply With Quote  
Join Date: Feb 2007
Location: Bangalore,India
Posts: 1,213
Reputation: debasisdas is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 78
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Nearly a Posting Virtuoso

Re: Change date format

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

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

Re: Change date format

  #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  
Join Date: Oct 2007
Posts: 8
Reputation: yogesh_vaidya12 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
yogesh_vaidya12 yogesh_vaidya12 is offline Offline
Newbie Poster

Re: Change date format

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Oracle Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Oracle Forum

All times are GMT -4. The time now is 9:15 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC