Well, you need to convert the data to a date time type.
The formula below will do that. Although, since these dates are not in
standard US format mm/dd/yy , I'm not sure how CDate will handle the
conversion.
CDate(Left([TheField], 17))
So the first thing is to test this conversion. If it works then you can use
the result and subtract two date time.
The following should work for that.
CDbl(CDate(Left([TheField], 17)) - DateSerial(5,1,1))
For a discussion about handling dates see
International Dates in Access at:
http://allenbrowne.com/ser-36.html
"BJ" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I have data like this
> 08/03/05 14:35:30.0
> 08/03/05 14:38:24.0
> 08/03/05 14:41:38.5
> 08/03/05 14:45:46.0
> 08/03/05 14:47:19.5
> 08/03/05 14:48:21.0
> 08/03/05 14:49:14.5
> 08/03/05 14:49:15.0
> 08/03/05 14:50:13.0
> 08/03/05 14:50:13.5
> 08/03/05 14:51:43.0
> 08/03/05 14:53:12.5
> 08/03/05 14:55:15.5
> 08/03/05 14:57:08.0
> 08/03/05 15:00:54.5
> 08/04/05 08:38:34.5
> 08/04/05 15:23:13.5
> 08/04/05 15:24:37.0
> 08/04/05 15:24:59.0
> 08/04/05 15:24:59.5
> 08/04/05 15:25:15.0
>
> What I want to do is, calculate th eelsasped days depending on the date
> and time
> i.e.
> 08/04/05 15:25:15.0 = 31( for Jan) + 28( for Feb ) + 31 ( for Mar) + 8
> + 15.25/24 ( convert the time to date) = 98.6
>
> Anyone knows, how to do it in Access Query ?
>
> Thanks in Advance
> BJ
>