English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have a Table in Access.
In a column of the table there are data for date and time combined with the following format: YYYY.MM.DD hh:mm:ss
For example 09.03.2006 12:35:12
I need to convert this column into YYY.MM.DD only, that is, to take out the time stuff. How can I do that??

2006-06-19 23:24:30 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

3 answers

- Go into the design mode of the table.
- Select the Field with the Date information you want to change
Note - The field should be a Date/Time type
- At the Bottom of the screen is the details of the field
- In the "Format" area you can set out how you wish the date to be viewed.

OR

Create a query with all the data in the table but instead of this date field, create a new one that looks something like this

New Date: Format([Date Field], "yyyy.mm.dd")

but if you do this the field will be considered a String and not a Date. (That may cause issues if you wish to do something else with the data)

2006-06-19 23:35:47 · answer #1 · answered by Michael R 2 · 1 0

Go in to design mode of the table. click on the date column. in the lower partof the screen you will see property for the column highlighted. you can set input mask to convert in to the format that you need.

Good luck!!!!!!!!

2006-06-20 06:29:55 · answer #2 · answered by Net Oracle 4 · 0 0

export the table into excel and re format the column if you do this in access you will lose the data in it :)

2006-06-20 06:28:05 · answer #3 · answered by ptdemon 3 · 0 0

fedest.com, questions and answers