Here's a way to convert it to a real date in a query:
TheDate: CDate(Left([date],4) &â€/â€& Mid([date], 5,2) &â€/â€& Mid([date], 7,2)
&†â€& Mid([date], 9,2) &â€:â€& Mid([date], 11,2) &â€:â€& Mid([date], 13,2))
However the CDate function will bomb out if any record has something that
can't be considered a valid date. Therefore I link to use the IsDate function
to find these bad dates.
I put it into an IIf statement and if IsDate finds something wrong, it puts
in a bogus date - in this case 01/01/1776. You can change the bogus date to
something else and then fix any problem records.
TheDate: IIf(IsDate(Left([date],4) &â€/â€& Mid([date], 5,2) &â€/â€& Mid([date],
7,2) &†â€& Mid([date], 9,2) &â€:â€& Mid([date], 11,2) &â€:â€& Mid([date], 13,2))=
True, CDate(Left([date],4) &â€/â€& Mid([date], 5,2) &â€/â€& Mid([date], 7,2) &â€
â€& Mid([date], 9,2) &â€:â€& Mid([date], 11,2) &â€:â€& Mid([date],
13,2)),#01/01/1776#)