Conditional time formatting: want 7 pm not 7:00 pm if event starts on the hour.
-
I want g:i a for events that start not-on-the-hour (for example 7:30 pm), but g a for events that start on the hour (like 7 pm).
In computer-friendly grammar:
If (event start) minutes = zero, <g a>, otherwise <g:i a>.
If there’s no way to directly query if minutes=zero, is there a way to test something like:
if (is whole number (datetime/24))?
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Conditional time formatting: want 7 pm not 7:00 pm if event starts on the hour.’ is closed to new replies.