Computer Learning Zone CLZ Access Excel Word Windows

If winning is not important, why keep score?

-Klingon Proverb
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Code Vault > Generic VBA > Date Time > Date Formats
Date Codes for Format Function
By Richard Rost   Richard Rost on LinkedIn Email Richard Rost   4 years ago

I always find myself having to look these up: Date Codes for the Format Function

d         day of month: 1 to 31
dd        day of month, two digits: 01 to 31
ddd       weekday, short: Mon, Tue, Wed, etc.
dddd      weekday, long: Monday, Tuesday, etc.
w         day of the week: 1 to 7
ww        week of the year: 1 to 53
m         month: 1 to 12
mm        month, two digits: 01 to 12
mmm       month, short: Jan, Feb, Mar, etc.
mmmm      month, long: January, February, etc.
q         quarter of year: 1 to 4
yy        year, two digits: 00 to 99
yyyy      year, four digits: e.g. 1950, 2000, 2014
h         hour: 0 to 23
hh        hour, two digits: 00 to 23
n         minute: 0 to 59
nn        minute, two digits: 00 to 59
s         second: 0 to 59
ss        second, two digits: 00 to 59

DateFormatted = Format(MyDate,"mmddyyyy")

 

 

Start a NEW Conversation
 
Only students may post on this page. Click here for more information on how you can set up an account. If you are a student, please Log On first. Non-students may only post in the Visitor Forum.
 
Subscribe
Subscribe to Date Codes for Format Function
Get notifications when this page is updated
 
 
 
 

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 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 11/6/2024 3:06:13 PM. PLT: 1s
Keywords: code vault generic vba format date codes  PermaLink  Date Codes for Format Function