10 digit date

J

Joel Allen

Hello,

I have a query where one of the fields has a 10 digit date. It's some UNIX
format that represents seconds from the year 1970.

Does anyone know of an easy way to convert this to a short date like
1/1/2009?

Thanks for your help.
 
M

Marshall Barton

Joel said:
Hello,

I have a query where one of the fields has a 10 digit date. It's some UNIX
format that represents seconds from the year 1970.

Does anyone know of an easy way to convert this to a short date like
1/1/2009?


Use something like:

DateAdd("s", [seconds field], #1/1/1970#)
 
J

Joel Allen

Brilliant, that worked. Thanks very much.

Marshall Barton said:
Joel said:
Hello,

I have a query where one of the fields has a 10 digit date. It's some
UNIX
format that represents seconds from the year 1970.

Does anyone know of an easy way to convert this to a short date like
1/1/2009?


Use something like:

DateAdd("s", [seconds field], #1/1/1970#)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top