Converting datetime to date

triton

New Member
Joined
Sep 18, 2007
Messages
4
I'm working with a linked table and the table has a timestamp field that is in a general format ex. 4/18/2007 7:00:34 PM

I need a way through a query that I can get the timestamp field to read in a short date format so I can link this table with another that is using the short date format with no time.

Any help would be much appreciated.

Thanks in advance
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
in the query grid, do this:
Code:
Field:      TimeStampField
Table:      YourTableName
Sort:
Show:
Criteria:   DateSerial(Year([DateReal]),Month([DateReal]),Day([DateReal]))
Change the field and table names I have used to your own table and field names. If the two date fields have the same name, then you will need the table name in front of the DateReal field.
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,205
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top