Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / November 2005

Tip: Looking for answers? Try searching our database.

Exporting the Date without the time

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jhmiller3 - 07 Nov 2005 15:59 GMT
I am trying to reformat a date/time field to export it without the time.  
Article 291245 gives a suggestion (Method 1), but I can not figure out how to
implement the suggestion.  Can not figure out how to do a new calculated
field with the suggested format.

Any help would be greatly appreciated.  Thanks in advance. - John
Ofer - 07 Nov 2005 16:22 GMT
You can use the format, to return only the date without the time

CDate(Format(DateField,"dd/mm/yyyy"))

Signature

The next line is only relevant to Microsoft''s web-based interface users.
If I answered your question, please mark it as an answer. It''s useful to
know that my answer was helpful
HTH, good luck

> I am trying to reformat a date/time field to export it without the time.  
> Article 291245 gives a suggestion (Method 1), but I can not figure out how to
> implement the suggestion.  Can not figure out how to do a new calculated
> field with the suggested format.
>
> Any help would be greatly appreciated.  Thanks in advance. - John
Marshall Barton - 07 Nov 2005 17:04 GMT
>I am trying to reformat a date/time field to export it without the time.  
>Article 291245 gives a suggestion (Method 1), but I can not figure out how to
>implement the suggestion.  Can not figure out how to do a new calculated
>field with the suggested format.

Did you forget to create a query to use for the export?

Once you have the query open in design view, replace your
datetime field with something like:

    MyDate: Format([datetimefield], "mm/dd/yyyy")

Signature

Marsh
MVP [MS Access]

jhmiller3 - 07 Nov 2005 19:35 GMT
Marshall, thanks.  Not exactly sure what I was doing wrong, but this did the
trick. - John

> >I am trying to reformat a date/time field to export it without the time.  
> >Article 291245 gives a suggestion (Method 1), but I can not figure out how to
[quoted text clipped - 7 lines]
>
>     MyDate: Format([datetimefield], "mm/dd/yyyy")
jhmiller3 - 07 Nov 2005 19:41 GMT
Not sure how to mark this as the answer.  Nothing comes up in the message pane.

> >I am trying to reformat a date/time field to export it without the time.  
> >Article 291245 gives a suggestion (Method 1), but I can not figure out how to
[quoted text clipped - 7 lines]
>
>     MyDate: Format([datetimefield], "mm/dd/yyyy")
Ofer - 07 Nov 2005 20:19 GMT
It's Ok, you did mark it as an answer, you can see by the green mark

> Not sure how to mark this as the answer.  Nothing comes up in the message pane.
>
[quoted text clipped - 9 lines]
> >
> >     MyDate: Format([datetimefield], "mm/dd/yyyy")
Marshall Barton - 08 Nov 2005 02:01 GMT
I appreciate the thought John, but don't go out of your way
marking these things.  They're just used to tell other folks
with a similar question that the suggested approach worked.
There is (currently?) no personal benefit to anyone and the
vast majority of people that use a real news reader program
instead of the web interface will never see it anyway.  A
simple post with "Thanks, that worked" is sufficient and
reaches a far wider audience
Signature

Marsh
MVP [MS Access]

>Not sure how to mark this as the answer.  Nothing comes up in the message pane.
>
[quoted text clipped - 9 lines]
>>
>>     MyDate: Format([datetimefield], "mm/dd/yyyy")
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.