C
chris
I am linking an access database to an accounts package (via ODBC).
Dates are available as a text string in yyyymmdd format but I want to
display them as dd/mm/yy. I am using the following code to convert it
for display in a text box on my forms.
Public Function ExchDateConvert(exdate)
y = Mid(exdate, 3, 2)
m = Mid(exdate, 5, 2)
d = Right(exdate, 2)
ExchDateConvert = d & "/" & m & "/" & y
End Function
It works but seems to be rather slow. Is there a better way to do it?
Chris
Dates are available as a text string in yyyymmdd format but I want to
display them as dd/mm/yy. I am using the following code to convert it
for display in a text box on my forms.
Public Function ExchDateConvert(exdate)
y = Mid(exdate, 3, 2)
m = Mid(exdate, 5, 2)
d = Right(exdate, 2)
ExchDateConvert = d & "/" & m & "/" & y
End Function
It works but seems to be rather slow. Is there a better way to do it?
Chris