If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > Sql Default Date Format

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-27-02, 09:07
BrutusBuckeye BrutusBuckeye is offline
Registered User
 
Join Date: Nov 2002
Posts: 13
Sql Default Date Format

How can I change the default date format from DD-MON-YY to DD-MON-YYYY ?
Reply With Quote
  #2 (permalink)  
Old 11-27-02, 09:10
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
Re: Sql Default Date Format

Quote:
Originally posted by BrutusBuckeye
How can I change the default date format from DD-MON-YY to DD-MON-YYYY ?
In what DBMS?
In Oracle:
ALTER SESSION SET NLS_DATE_FORMAT='DD-MON-YYYY';
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
  #3 (permalink)  
Old 11-27-02, 09:20
BrutusBuckeye BrutusBuckeye is offline
Registered User
 
Join Date: Nov 2002
Posts: 13
Re: Sql Default Date Format

Quote:
Originally posted by andrewst
In what DBMS?
In Oracle:
ALTER SESSION SET NLS_DATE_FORMAT='DD-MON-YYYY';
you are the man !
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On