alangsk
asked on
Date and Time Formatting
I am trying to format a label to display the date and time in the following format:
ex. 10:38 AM April 20, 2005
If I use Now, it shows correctly, but the date includes the day of the week which I don't want. However, when I use HH:MM, I get a 24 hour format, so when in the PM, it shows hours greater than 12. What is the best way to format the date and time to get the above example. Thanks for the help.
ex. 10:38 AM April 20, 2005
If I use Now, it shows correctly, but the date includes the day of the week which I don't want. However, when I use HH:MM, I get a 24 hour format, so when in the PM, it shows hours greater than 12. What is the best way to format the date and time to get the above example. Thanks for the help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
MsgBox Format(Now, "hh:nn AM/PM mmmm dd, yyyy")