Forum Discussion
ITSupport
7 years agoQrew Trainee
Tried that but problem with "Right" is then I get AM and PM and can't have that.
- _anomDiebolt_7 years agoQrew EliteI tested this and it works:
Right("0" & NotRight(ToText([Appointment Time]), 3), 5)
Using short field names because I am lazy:- YobaniMaldonado3 years agoQrew MemberNice work!
Is there a way to include seconds as well. I had the same issue trying to get rid of the PM and AM and this worked, but I need seconds to be recorded as well. Is that possible?
Thank you.
------------------------------
Yobani Maldonado
------------------------------
- _anomDiebolt_7 years agoQrew EliteTo trim off the " AM" or " PM" from the right try this:
ToText([Date Scheduled]) &
" " &
NotRight(Right("0" & ToText([Appointment Time]), 5), 3) - ITSupport7 years agoQrew TraineeThank you - this is super close. Made a minor tweak to get it to display right - used 8 instead of 5. But still having issue with the leading zero
With below formula:
08:00 displays correctly 08:00
10:00 displays this 010:00
Some how need to add zero when time is <10:00 but not display for 10:00-12:00 if that makes sense
ToText([Date Scheduled]) &" " &
NotRight("0" & Right(ToText([Appointment Time]), 8), 3) - ITSupport7 years agoQrew Traineeah ok - you flipped the 3, 5 Thanks again!