Solved

How make short date field on a form display only the month/day/year

Posted on 2014-10-19
11
202 Views
Last Modified: 2014-10-19
I have a date field on a form and the format is Short Date.  But I want it to only display for example 10/19/2014 when the focus is on the field.  Right now it shows for example 10/19/2014 9:10:38 AM

How can I change this?
0
Comment
Question by:SteveL13
[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
  • 6
  • 5
11 Comments
 
LVL 29

Expert Comment

by:IrogSinta
ID: 40390032
Instead of Short Date in the Format property of that particular control, use mm/dd/yyyy.

Ron
0
 

Author Comment

by:SteveL13
ID: 40390036
Didn't work.  It still shows "10/19/2014 9:10:38 AM" when the focus is on the field.  This is an unbound form if that helps.
0
 
LVL 29

Expert Comment

by:IrogSinta
ID: 40390075
Where is it getting that date/time if this is an unbound form?
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

Author Comment

by:SteveL13
ID: 40390092
It is a form used to locate a record or records based on the date range the user enters.  See screen shot.

Then there is a query which is the record source for a report that uses:

Between [Forms]![frmname]![txtStartDate] and [Forms]![frmname][!txtStartDate] for the criteria.

All I need is for the date field(s) on the form to display just "10/19/2014"  instead of "10/19/2014 9:10:38 AM" when the focus is on the field
0
 
LVL 29

Expert Comment

by:IrogSinta
ID: 40390099
You forgot the screenshot.
0
 

Author Comment

by:SteveL13
ID: 40390142
Sorry.  Here are two... one before the date field gets the focus and one after the date field gets the focus.  You can see that the time starts to display (and would fully display if the field was longer.

before focus
after focus
0
 
LVL 29

Expert Comment

by:IrogSinta
ID: 40390267
So you actually selected a date from the date picker calendar rather than entering something in the field?
0
 

Author Comment

by:SteveL13
ID: 40390288
The default of the date fields is =Now()

When I click on the date field as if I wanted to manually enter a date, the time shows up.
0
 

Author Comment

by:SteveL13
ID: 40390292
Or even if I just click on the date field to use the calendar date picker the time shows up.
0
 
LVL 29

Accepted Solution

by:
IrogSinta earned 500 total points
ID: 40390324
That explains it.  The function Now() includes the time.  You need to use the function Date() instead in the default value.
0
 

Author Comment

by:SteveL13
ID: 40390352
Thank you so much!
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

710 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