Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 19 Apr 2012 @ 10:37:46 GMT


     
  <Prev Next>   <<First <Prev
Next>
Last>>
 


Subj:   Re: Help required in casting the date
 
From:   Anomy Anom

<-- Anonymously Posted: Thursday, April 19, 2012 04:33 -->

Hi,

This is due to the way dates are stored internally. The below one will give you 2007-04-01.

     SELECT CAST(1070401 AS DATE FORMAT 'YYYY-MM-DD');

Regards



     
  <Prev Next>   <<First <Prev
Next>
Last>>
 
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023