Formatting Time

  • Thread starter Thread starter Judy
  • Start date Start date
J

Judy

How do I format the times 10:30 AM to get 10:30A and 12:30 PM to get 12:30P?

Thanks!

Judy
 
Judy said:
How do I format the times 10:30 AM to get 10:30A and 12:30 PM to get 12:30P?

Thanks!

Judy

This is right out of the Access Help:

Debug.Print Format(Time, "h:mmA/P")

HTH,
Randy
 
Here is one way to do it for display purposes:

=left(format(now(),"hh:mm ampm"),7)

--Steve Huff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top