Solved

Querying date/time access

Posted on 2014-02-26
4
376 Views
Last Modified: 2014-02-26
I have a field in an access database that looks like this "05/08/1986 11:30:00 AM" and I want to query it to just get this, "05/08/1986".

How do I do that?
0
Comment
Question by:Coaster_brook_trout
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 61

Expert Comment

by:mbizup
ID: 39888923
On your form, set the format property of that textbox to "Short Date"


You can also set the format property of the field in the underlying table or in the query itself to Short Date
0
 
LVL 42

Assisted Solution

by:pcelba
pcelba earned 250 total points
ID: 39888931
You may use FORMAT function:

FORMAT(YourDateTime, "mm/dd/yyyy")

More info: http://www.techonthenet.com/access/functions/date/format.php
0
 
LVL 61

Accepted Solution

by:
mbizup earned 250 total points
ID: 39888939
To do this right in the query...Short Date
0
 
LVL 61

Expert Comment

by:mbizup
ID: 39889032
Coaster_brook_trout,

Was there something we should have done to make the responses more clear?

Take a look at EE's grading guidelines here:
http://support.experts-exchange.com/customer/portal/articles/481419-what-grade-should-i-award-?b_id=44

A B grade means the solution given lacked some information or required you to do a good amount of extra work to resolve the problem. When closing the question, the asker should explain why a B grade was awarded.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Suggested Courses

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question