Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check date Y2k

Status
Not open for further replies.
Oct 22, 2001
215
US
Does any one got the Y2k date check logic handy done in VB?
I am using 'is date' function but it is not catching dates that are bad but could be valid like (Year =999, 99, 200)
and I need to fix them as (1999, 1999, 2000) and so forth.
Thans again@
 
I am using Visual Basic (ADO). The app sends data values some thing like this:
Conn.Execute "Insert into table values (" & Check_DT(!dob) & ");"

the Check_DT is a simple function that is something like this: if
IS DATE(!dob) then (!DOB) else Null

 
I am using Visual Basic (ADO). The app sends data values some thing like this:
Conn.Execute "Insert into table values (" & Check_DT(!dob) & ");"

the Check_DT is a simple function that is something like this: if
IS DATE(!dob) then (!DOB) else Null
But I need more than that .... Microsoft IS DATE may allow a date but It is going to though off when the year is like 00. I need to fix it and change it to 2000 similer 99 to 1999 and 19 to 1999 as well.
 
This Forum is VB for Applications - You probably want the VB 5.0/6.0 Forum :) Skip,
metzgsk@voughtaircraft.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top