473,387 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Adding to year on input file

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?
Jul 17 '05 #1
3 3219
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" <ka***@ecsnj.com> 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?

Jul 17 '05 #2
> 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" <ka***@ecsnj.com> 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

Jul 17 '05 #3
Thanks - That sounds like what I'll need.

"Rick Rothstein" <ri************@NOSPAMcomcast.net> wrote in message
news:s9********************@comcast.com...
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" <ka***@ecsnj.com> 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

Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Fendi Baba | last post by:
The function is called from opencalendar(targetfield). Thanks for any hints on what could be the problem. .............................................................. var...
4
by: Dinsdale | last post by:
I'm looking at adding scheduling features to an application and I wanted to ask the community about any experience with scheduling components, either open source like from code project or from a...
11
by: AZRebelCowgirl73 | last post by:
here is the instructiions I am to use Ask the user to input the number of effective cars in the shop (this number should be between 1 and 100, inclusively). In a loop, controlled by the inputted...
2
by: dympna | last post by:
Hi can anyone suggest a fix for this... as I am a novice in access. I have created a training table with the following fields Employee Name - joe Training Received - Fork lift Date Received...
2
by: Devine123 | last post by:
Hi, I’m creating a perl script that takes incoming http/s requests, logs the standard input, output and error, before returning the output to the client. The input, output and error log is appended...
4
by: jrw133 | last post by:
Hello. So im a little bit stuck on one of my homework questions. heres the question: Write a C Shell Script that performs the following functions. Asks the user to input a year. The script...
10
by: sparks | last post by:
We are entering mm/dd/yyyy but some of the date fields only contain years. Can a date be made to only take a year entry if that is all that they have? can it be made to take only 2008 or maybe...
6
nomad
by: nomad | last post by:
Hello Everyone: I'm having troubles with some coding and Idon't know where it is. I have delevopled a calender where the client can add events to a day. The code worked perfect on my computer but...
1
by: swethak | last post by:
Hi, I am desiging the calendar application for that purpose i used the below code. But it is for only displys calendar. And also i want to add the events to calendar. In that code displys the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.