Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 06 Oct 2000 @ 08:46:38 GMT


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


Subj:   Re: Functions of dates!
 
From:   Dieter N�th

Hi Michael,

  (((date+31)/100*100+1)(date))-1
/* The addition of 31 takes any date into the next month.
 



and maybe even more ;-)
e.g.
99-01-20 + 31 = 99-02-20
but
99-01-31 + 31 = 99-03-03


so use add_months instead or use Hough's extract version, it's easier to read and easier to understand....

Dieter



     
  <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