Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access TechHelp    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Date Formatted Like 01-Mar-2026
Tom Juric 
     
7 days ago
Richard uses dates format 1994-02-03 in his Sort by Month video.  I need to use these functions with the format 02Mar1994?

Does anyone know how?
Tom Juric OP  @Reply  
     
7 days ago
Sorry, date is formatted as 01-Mar-2026
Richard Rost  @Reply  
          
7 days ago
If your date is actually stored in that format (like 01-Mar-2026), then it's probably in a text field, not a true Date/Time field. That's where things get tricky, because once it's text, you lose proper date behavior like sorting.

If you're starting with a real date value and just want to display it that way, you can use the Format function like this:

NewDateString = Format(D, "dd-mmm-yyyy")

Just keep in mind that Format returns text, not a date. So if you need to sort by month or do any real date calculations, you want to keep the original field as a true Date/Time and only format it for display.
Richard Rost  @Reply  
          
7 days ago
And EVERYONE knows that yyyy-mm-dd is THE BEST format. :)
John Williams  @Reply  
     
7 days ago
Tom If the underlying data type is date/time the sort will be in order.  If you want to group by month, you can separate out by using year and month functions :  year([datefield]), month([datefield]).

DSDate     YearMonth
12/18/2024202412
05/09/202520255
09/30/202520259
09/30/202520259
10/17/2025202510
11/09/2025202511
11/09/2025202511
01/19/202620261
01/19/202620261
04/20/202620264
04/20/202620264
04/20/202620264
04/20/202620264
04/22/202620264
04/22/202620264
John Williams  @Reply  
     
7 days ago

Tom Juric OP  @Reply  
     
7 days ago
I do NOW!!  Thanks
Tom Juric OP  @Reply  
     
7 days ago
How do you choose the yyyy-mm-dd format?  My access 2021 does not offer that option
Kevin Robertson  @Reply  
          
7 days ago
Richard Rost  @Reply  
          
7 days ago
Tom Watch the video that Kevin assigned you to. It's a Windows system setting. Once you set it in Windows, all of your applications will use that as the short date format.
Richard Rost  @Reply  
          
7 days ago
I started using it because I've got students all around the world, and I was doing databases that were making specific use of the USA date format, which I've always used since I was a kid (month-day-year). Writing code specific to that format now, I've got people in Europe and around the world with a different day-month-year format, which honestly makes more sense.

Eventually I decided to standardize on ISO dates (year-month-day) because it's the most logical date format. It works best with computers because you don't have to do any extra work to sort it, and it's just better. I've been writing it on my checks and on receipts and everything for the past 10 years now, so people look at it and go, "Huh?" I'm at the doctor's office and I fill out the little form and put an ISO date there for my date of birth. I can always see the quizzical look on the receptionist's face when they first look at it, but it's well worth it.

My goal is to switch everybody to ISO dates and get rid of daylight saving time. Those are my two goals. If I can't make the world a Star Trek-like utopia, I can at least do those two things.
Tom Juric OP  @Reply  
     
7 days ago
I just watched the video and learned a lot.  Using it now and my code works perfectly.  Thank you all for your help!

I totally agree on DST
Add a Reply Upload an Image
Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 4/30/2026 2:18:28 AM. PLT: 1s