How to apply Date formatting to column

BizBoy

Board Regular
Joined
Jul 26, 2012
Messages
118
Hi,

I have imported a data from excel in access.
One of the column is 'DOJ' (date of joining).

After importing this data, DOJ was reflecting as number.
Hence I go to Design view and change DOJ formatting to Date/Time.

However, post this, some the records are reflecting as '07/12/2017 15:43:39' with time value.

When I run a query on this data, I get result as '07/12/2017 15:43:39'.
However I need result to populated as '07/12/2017'.
Is it possible. Can anyone please help me in this.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
If it just a formatting thing, go to Design View, right click on the Field, and enter mm/dd/yyyy in the Format property of the field (this will only change how it is displayed, not the value).
If you actually need to change the value, then just use the INT function, i.e. INT([DOJ])
This works because Access and Excel store dates as numbers, specifically the number of days since 1/0/1900, and time is just the fraction of a day. So using the INT function removes that fraction (time).
 
Upvote 0
Hi Joe,

Thanks for the help. I am checking this and will revert with details.
I was not aware access and excel treats dates same way.

Have a nice day ahead. :)
 
Upvote 0

Forum statistics

Threads
1,215,430
Messages
6,124,846
Members
449,194
Latest member
HellScout

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