Date conversion

hights

New member
Local time
Today, 02:24
Joined
Apr 10, 2013
Messages
9
Anyone any idea how I would convert CYYMMDD TO DDMMYYYY in a query?
Here is an example of the date I am trying to convert....
1130820 - I want to display 20/08/2013. Thanks.
 
1) You posted in the wrong place on the forum, this part is to introduce yourself. Not pose questions.
2) Welcome to the forum
3) As to your problem, you can solve this a couple of ways....
a function like:
Code:
Function db2DateConvert(db2Date As Double) As Date
    db2DateConvert = DateSerial(Left(db2Date + 19000000, 4), Mid(db2Date, 4, 2), Mid(db2Date, 6, 2))
End Function

would seem the best solution
 

Users who are viewing this thread

Back
Top Bottom