Solved

Querying date/time access

Posted on 2014-02-26
4
323 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
  • 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 41

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
This collection of functions covers all the normal rounding methods of just about any numeric value.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

762 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now