I would like to know how I can get date part only of date time field in ms access.
I am trying to import the file into SAS but the time stamp also comes. I tried to export to txt file, still the time stamp shows up.
Thanks for replying.
I created another columns and tried to update it.
update table1 set new_col = format(date_col, "mm/dd/yyyy")
Then tried to export to text file the whole table. but it did not help.
Thanks for the reply. When I changed to txt format, I can just get the date part. Then I imported into SAS and the data type is string.
I now figured out a way in SAS how to change and specify format for date field during import without creating a new column in access.
One thing I still do not know how to do is, how can we store just date part in access in a date/time field. If that can be done it is much easy when tranferring files from one software to another.
Does access always store date as date/time internally?
MS Access and all other databases that I know store dates as datetimes. Even when you enter only a date, it will return this date as a datetime, where the timepart is 00:00:00
The function datevalue returns only the datepart of a string that represents a date(time) but also of a real datetime.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.