Removing Seconds

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

James

I want to cut the seconds off of a time, how do I go about doing this?

Thanks
 
Did you want to remove them from the value, or simply not display them?

To not display them, the advice you got elsewhere in this thread (to use
hh:mm as the format) will work, but using a format doesn't change the value
of the field.

If you want to have a new time that doesn't include the seconds, try

TimeSerial(Hour(OldTimeValue), Minute(OldTimeValue), 0)
 
PERFECT

Douglas J. Steele said:
Did you want to remove them from the value, or simply not display them?

To not display them, the advice you got elsewhere in this thread (to use
hh:mm as the format) will work, but using a format doesn't change the value
of the field.

If you want to have a new time that doesn't include the seconds, try

TimeSerial(Hour(OldTimeValue), Minute(OldTimeValue), 0)
 

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