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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Issue?? 1

Status
Not open for further replies.

mmck1964

Technical User
Jul 12, 2001
104
US
I import a date that is 104 that represents January 2004.A 204 would be February 2004 and so on to 1204 for December 2004. Is there a way to convert the 104 to display as 01/04 up to 1204 to display as 12/04?
Thanks!
 
write a function in the modules to convert it.

rollie@bwsys.net

Need such a funcion, email me.
 
Please keep the questions and answers on the forum, so that other people can learn from the process. That's the whole basis of this thing.

Jeremy

==
Jeremy Wallace
AlphaBet City Dataworks
Access Databases for Non-Profit Organizations

Please post in the appropriate forum with a descriptive subject; code and SQL, if referenced; and expected results. See thread181-473997 for more pointers.
 
Here is the function. I never write them till I knkow for sure someone really wants them.

Public Function ToMyD8(dd As String) As String
ToMyD8 = Day(dd) & MID(Year(dd), 3)
End Function

Public Function BacToD8(ss As String) As Date
Dim bb As Variant

bb = CDate(MID(ss, 1, 1) & "/1/" & Right(ss, 2))

BacToD8 = bb
End Function
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top