T
Tony Williams
I have a field that is populated with a text string and I want to convert
this to a date. Anexample of the string is:
1192008
It is in fact a date which should be 01/19/2008 and should be formatted as
mm/dd/yyyy
I have used the Dateserial function as advised by Ken Snell and this is my
interpretation of what he has suggested
=DateSerial(CInt(Left([incdate],2)),CInt(Right([incdate],4)),CInt(Mid([incdate],2,2)))
where incdate is the field holding the data.
However this equation gives me 04/19/178 I wondered whether the proble could
be that some of the records have a date which is a two digit month such as
11142008 which is then calculated as 11/04/178 where the control is
formatted as mm/yy/dddd
Can someone help please?
Thanks
Tony
this to a date. Anexample of the string is:
1192008
It is in fact a date which should be 01/19/2008 and should be formatted as
mm/dd/yyyy
I have used the Dateserial function as advised by Ken Snell and this is my
interpretation of what he has suggested
=DateSerial(CInt(Left([incdate],2)),CInt(Right([incdate],4)),CInt(Mid([incdate],2,2)))
where incdate is the field holding the data.
However this equation gives me 04/19/178 I wondered whether the proble could
be that some of the records have a date which is a two digit month such as
11142008 which is then calculated as 11/04/178 where the control is
formatted as mm/yy/dddd
Can someone help please?
Thanks
Tony