I have to format a database from a community calendar for a website.
Under "Sdate," the date field, some entries are date-only. Some are date-and-time. By default, the date-only entries display as date-only, which is fine. But the date-and-time entries display with hours, minutes, seconds, and am/pm. I simply want to get rid of the "seconds" entry.
But when I tried using Format([Sdate],"mm/dd/yy"", ""hh:nn am/pm", I got an unwanted result: the date-only entries are now displayed as "12/02/02, 12:00 am." In other words, I get "12:00 am" added to every entry that lacks a specific time.
Is there a way to display the date-only entries as date-only, while shortening the date-and-time entry to ShortDate/MediumTime?
Thanks!
-- Bob
Under "Sdate," the date field, some entries are date-only. Some are date-and-time. By default, the date-only entries display as date-only, which is fine. But the date-and-time entries display with hours, minutes, seconds, and am/pm. I simply want to get rid of the "seconds" entry.
But when I tried using Format([Sdate],"mm/dd/yy"", ""hh:nn am/pm", I got an unwanted result: the date-only entries are now displayed as "12/02/02, 12:00 am." In other words, I get "12:00 am" added to every entry that lacks a specific time.
Is there a way to display the date-only entries as date-only, while shortening the date-and-time entry to ShortDate/MediumTime?
Thanks!
-- Bob