Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Building an expression

Status
Not open for further replies.

Etruscan2004

Programmer
Joined
Apr 1, 2004
Messages
8
Location
US
I have in a table a field that has the number of seconds since January 1st,1970 at midnight and was wondering if there was any way to build an expression to convert it to a regular date time.
 
Look at this post
thread701-687203

you simply use the format and dateadd functions.

Paul
 

ConvertedDateTime = DateAdd("s", SecondsSinceJan_1_1970, #1/1/1970#)
 
Try this:

Code:
DateAdd("s", number_of_seconds , #01/01/70 00:00 AM#)

This should give you a Date value including the Time by using the DateAdd function to add the seconds to your start date.

Good luck.

Bob Scriver
[blue]Want the best answers? See FAQ181-2886[/blue]


 
Worked great. Thanks for making me look good for my boss.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top