home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,186 of 10,840   
   Rick Rothstein to All   
   Re: Adding to year on input file   
   03 Feb 05 11:38:58   
   
   From: rickNOSPAMnews@NOSPAMcomcast.net   
      
   > Also - the year is a 2-digit year!  So we have to include the century   
   then   
   > subtract 48 years.  (Everything is after 2000 fortunately).   
   >   
   > "Meyer1228"  wrote in message   
   > news:1esMd.5310$ya6.3705@trndny01...   
   > > We're converting an old database using text files for input and   
   output.   
   > > Their solution for Y2K has 48 years subtracted from the date field..   
   Our   
   > > input now has the year field with 48 years less (i.e. 2000 is 1952).   
   In   
   > VB,   
   > > how do we add 48 years?   
      
   I'm not sure where in the process you are doing this, but I'm guessing   
   the DateAdd function may be what you are looking for.   
      
   Rick - MVP   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca