Help I need to removing time stamp on a date field

A

Alex Martinez

Hello,

In my table called (DataImport) I have a field called "ReceivedDate" I get a
data dump from our AS400 system, which I export into the table. My problem
is besides getting the data I get the time stamp as well (3/9/2006 12:25:29
PM). This is giving me problems in my query with matching other date fields
that doesn't have a time stamp. I tired putting a mask on the
"ReceivedDate" field and I even format the field as short date, but I still
have the time stamp. How can I get rid of the current time stamp and how
can I prevent geting the time stamp, unfortunately IT does not want to be
bother changing from date/time stamp to just giving me the date only. I
recived the data thru a pass thru query. Can someone help me. Any tips
will be appreciated. Thank you in advance.
 
R

Rick Brandt

Alex said:
Hello,

In my table called (DataImport) I have a field called "ReceivedDate"
I get a data dump from our AS400 system, which I export into the
table. My problem is besides getting the data I get the time stamp
as well (3/9/2006 12:25:29 PM). This is giving me problems in my
query with matching other date fields that doesn't have a time stamp.
I tired putting a mask on the "ReceivedDate" field and I even format
the field as short date, but I still have the time stamp. How can I
get rid of the current time stamp and how can I prevent geting the
time stamp, unfortunately IT does not want to be bother changing from
date/time stamp to just giving me the date only. I recived the data
thru a pass thru query. Can someone help me. Any tips will be
appreciated. Thank you in advance.

In your Passthrough query wrap the Timestamp field in the Date() function. That
will strip the time component off.

SELECT SomeField, SomeOtherField, Date(YourTimeStampField), etc...
 

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