Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 30 Oct 2012 @ 15:28:49 GMT


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


Subj:   Re: Date conversion not working
 
From:   Lenka, Dipti Prakash

Hi,

Use like this :

     sel
     cast(cast('02/25/2012' as date format 'mm/dd/yyyy') as date format
     'yyyy/mm/dd') "dt"
     from tblname
     where dt=cast(current_date as date  format 'yyyy/mm/dd')

Hopefully it should work.


Thanks,

Dipti Prakash



     
  <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