Trim a Time

  • Thread starter Thread starter James
  • Start date Start date
J

James

I have a Time displayed as HH:MM:SS:AM
I want to trim it to just show the Hour, how would I do this?

THanks
 
I have a Time displayed as HH:MM:SS:AM
I want to trim it to just show the Hour, how would I do this?

THanks

Set the control's Format property to
hh
 
if it's a datetime field, hour([fieldname])

try hour(now()) in a debug window.
 

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

Back
Top