Access 2007-2019
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
Home   Courses   Seminars   Templates   TechHelp   Fast Tips   Forums   Help   Contact   Join   Order   Logon  
Home > TechHelp > Directory > Access > Date Only < Relink Tables | Open Form >
Date Only?
By Richard Rost   Richard Rost on Twitter Richard Rost on LinkedIn Email Richard Rost   3 months ago

Format Date Values to Show Time Only if Specified

 S  M  L  XL  FS  Join Now

In this video, I'll show you how to format a list of date/time values so that they will show a time if needed, or just show the date value if the time portion is midnight.

Corinne from Henderson, Nevada (a Platinum Member) asks: I built a database where I have a form that shows upcoming appointments and tasks. Some of the appointments have times, which I want to see. However most of items are just tasks that can be done any time that day. If I format the field to show times, they all show up as being at midnight, which doesn't look good. Is there any way to hide the time portion of the date if it's at midnight? Plus, I want to see just hour and minute, not seconds. General Date works, but it shows seconds, and capital AM/PM. I'd like lowercase, if possible.


Silver Members will see how to format a single form date/time field to show the date only unless a time is specified. We'll use a little VBA, the OnCurrent and AfterUpdate events.

Gold Members and up will get a special Double-Extended Cut video. You will see how to format the date/time fields in a continuous form!

Silver Members and up get access to view Extended Cut videos, when available. Gold Members can download the database template from class plus get access to the Code Vault. If you signed up on YouTube you have to contact me so I can set up your account here on my web site. If you're not a member, Join Today!


Learn More

FREE Access Beginner Level 1
Access Level 2 for $1.00

Free Templates

TechHelp Free Templates
Blank Template
Contact Management
Order Entry & Invoicing
More Access Templates


Mailing List - Get Emails When New Videos Released!
Consulting - Need Help with Your Database?


Please feel free to post your questions or comments below or submit them via the TechHelp page.


microsoft access, ms access, ms access tutorial, #msaccess, #microsoftaccess, #help, #howto, #tutorial, #learn, #lesson, #training, #database, format a date and time field, date/time format, DateOnly function, date without time


Time Only Upload Images   Link  
James Hopkins 
3 months ago
Hey Richard, awesome Tech Help Videos. I was wondering if there was a to get and display to Time Only?
Richard Rost
3 months ago
Sure. DatePart() shows only the date. TimePart() shows only the time.
James Hopkins
3 months ago
Awesome... Thank Richard...
Add a Reply
Date only Special extended gol Upload Images   Link  
Rodney Maedke 
3 months ago
where do I find the code to use from the video. Do I find it in the code vault? as I do not seem to find it there, or am I not fully joined as a Gold member? Do I need to download the template  to get the code? I seem to see only a small amount of your code vault. Am I as a gold member not yet signed up for all the perks on your website
Alex Hedley
3 months ago
Did you not get the link to the shared folder of dbs when you joined?
Kevin Robertson
3 months ago
All the code is in the database download. The link is above in the Members section.
Add a Reply
Date Only Upload Images   Link  
Kevin Robertson 
3 months ago
Great Tech Help. Loved the solution for a Continuous Form.
Richard Rost
3 months ago
Thanks... sometimes the only way you can make stuff work the way you want is to do tricks. :)
Add a Reply

Show Older Comments...
View in Table Format

Start a NEW Conversation
Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.

You may want to read these articles from the 599CD News:

1/28/2022Duplicate Record
1/28/2022ABCD Core Part 7
1/27/2022Work Days
1/27/2022MyNetWorkDays (Free)
1/27/2022Access Developer 35
1/26/2022Yes/No Fields
1/22/2022Next Appointment
1/18/2022Access B2 Upgrade
1/17/2022Access Beginner 2 Links

Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
My Account
My Courses
Lost Password
Student Databases
Change Email
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Customer Support
Web Site Tour
Consulting Services
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Video Tutorials
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Terms of Sale
Contact Info
Support Policy
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn
Keywords: TechHelp Access format a date and time field, date/time format, DateOnly function, date without time  PermaLink